Merge pull request #199 from paulkaplan/fix-webpack-dev-server

Fix webpack dev server
This commit is contained in:
Paul Kaplan 2017-11-17 12:32:26 -05:00 committed by GitHub
commit d7d5e75567
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -2,6 +2,11 @@ language: node_js
node_js:
- 6
- "node"
env:
- NODE_ENV=production
install:
- npm --production=false install
- npm --production=false update
sudo: false
cache:
directories:

View File

@ -27,13 +27,12 @@ const base = {
}
]
},
plugins: [
plugins: process.env.NODE_ENV === 'production' ? [
new webpack.optimize.UglifyJsPlugin({
include: /\.min\.js$/,
minimize: true,
sourceMap: true
minimize: true
})
]
] : []
};
module.exports = [