fix(webpack): fix production config

pull/2670/head
Chaim Lev-Ari 2018-11-01 10:35:09 +02:00
parent c52eb28b79
commit 7661b55920
2 changed files with 5 additions and 2 deletions

View File

@ -23,7 +23,8 @@
"grunt": "grunt",
"dev": "yarn grunt run-dev",
"clean-all": "yarn grunt clean:all",
"build": "webpack",
"dev:client": "webpack",
"build:client": "webpack --config ./webpack/webpack.production.js",
"build-offline": "cd ./api/cmd/portainer && CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags '-s' && mv -b portainer ../../../dist/portainer-linux-amd64"
},
"engines": {

View File

@ -1,4 +1,6 @@
const webpackMerge = require('webpack-merge');
const commonConfig = require('./webpack.common.js');
module.exports = webpackMerge(commonConfig);
module.exports = webpackMerge(commonConfig, {
mode: 'production'
});