ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

commit 337cfd66796fc6dab8ffdeca23dfb4ed81c8cd61
parent 297dc248cc80938cd9f8bcb4b44a6fcb8f1568ab
Author: Alastair Taft <AlastairTaft@users.noreply.github.com>
Date:   Tue,  3 Nov 2015 15:56:48 +0000

Scoped packages in webpack server externals

Added an @ character to the check for a package name in the webpack server config externals section. This allows me to correctly include my private scoped package `@alastair/mybrand.lib`.
Diffstat:
Mtools/webpack.config.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/webpack.config.js b/tools/webpack.config.js @@ -180,7 +180,7 @@ const serverConfig = merge({}, config, { externals: [ function filter(context, request, cb) { const isExternal = - request.match(/^[a-z][a-z\/\.\-0-9]*$/i) && + request.match(/^[@a-z][a-z\/\.\-0-9]*$/i) && !request.match(/^react-routing/) && !context.match(/[\\/]react-routing/); cb(null, Boolean(isExternal));