Merge pull request #792 from paulkaplan/fix-webpack-dev-server
Only uglify if building for production.
This commit is contained in:
2 files changed
+5
-4
No files matched your search
+3
-2
@@ -5,13 +5,14 @@ node_js:
|
||||
env:
|
||||
- NPM_SCRIPT="tap:unit -- --jobs=4"
|
||||
- NPM_SCRIPT="tap:integration -- --jobs=4"
|
||||
- NODE_ENV=production
|
||||
sudo: false
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
install:
|
||||
- npm install
|
||||
- npm update
|
||||
- npm --production=false install
|
||||
- npm --production=false update
|
||||
script: npm run $NPM_SCRIPT
|
||||
jobs:
|
||||
include:
|
||||
|
||||
+2
-2
@@ -20,12 +20,12 @@ const base = {
|
||||
}
|
||||
}]
|
||||
},
|
||||
plugins: [
|
||||
plugins: process.env.NODE_ENV === 'production' ? [
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
include: /\.min\.js$/,
|
||||
minimize: true
|
||||
})
|
||||
]
|
||||
] : []
|
||||
};
|
||||
|
||||
module.exports = [
|
||||
|
||||
Reference in new issue
Block a user