From acaef9f639315876ee23e146e8d6c40cb83ec8b2 Mon Sep 17 00:00:00 2001 From: David Kaltschmidt Date: Wed, 16 Dec 2015 10:33:58 +0100 Subject: [PATCH] Speed up npm bundle builds Use include option to point to app sources --- client/webpack.production.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/webpack.production.config.js b/client/webpack.production.config.js index 61c27fbda..8cc287be0 100644 --- a/client/webpack.production.config.js +++ b/client/webpack.production.config.js @@ -14,6 +14,8 @@ module.exports = { // fail on first error when building release bail: true, + cache: {}, + entry: { app: './app/scripts/main', 'terminal-app': './app/scripts/terminal-main' @@ -25,6 +27,9 @@ module.exports = { }, module: { + include: [ + path.resolve(__dirname, 'app/scripts') + ], preLoaders: [ { test: /\.js$/,