Speed up npm bundle builds

Use include option to point to app sources
This commit is contained in:
David Kaltschmidt
2015-12-16 10:33:58 +01:00
parent c4f8496362
commit acaef9f639

View File

@@ -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$/,