mirror of https://github.com/portainer/portainer
fix(webpack): fix production config
parent
c52eb28b79
commit
7661b55920
|
@ -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": {
|
||||
|
|
|
@ -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'
|
||||
});
|
Loading…
Reference in New Issue