diff --git a/.travis.yml b/.travis.yml index c920c654e..bac821b73 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/webpack.config.js b/webpack.config.js index 9db7ea88e..677caf46a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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 = [