diff --git a/package.json b/package.json index 2f3c378a5..cf325c4fc 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/webpack/proudction.config.js b/webpack/webpack.production.js similarity index 58% rename from webpack/proudction.config.js rename to webpack/webpack.production.js index 33368971e..364efc9ed 100644 --- a/webpack/proudction.config.js +++ b/webpack/webpack.production.js @@ -1,4 +1,6 @@ const webpackMerge = require('webpack-merge'); const commonConfig = require('./webpack.common.js'); -module.exports = webpackMerge(commonConfig); \ No newline at end of file +module.exports = webpackMerge(commonConfig, { + mode: 'production' +});