diff --git a/web/package.json b/web/package.json index 8eefc46e..fc6df2e9 100644 --- a/web/package.json +++ b/web/package.json @@ -2,7 +2,7 @@ "name": "remark-ui", "version": "0.1.0", "scripts": { - "build": "webpack --config ./webpack.config.js", + "build": "NODE_ENV=production webpack --config ./webpack.config.js", "start": "webpack-dev-server --progress --hot --inline --config ./webpack.config.js", "reinstall": "rm -rf ./node_modules/ && npm install" }, diff --git a/web/webpack.config.js b/web/webpack.config.js index 6f629d1e..0354d75b 100644 --- a/web/webpack.config.js +++ b/web/webpack.config.js @@ -10,7 +10,6 @@ const Define = webpack.DefinePlugin; const { NODE_ID } = require('./app/common/constants'); const publicFolder = path.resolve(__dirname, 'public'); -console.log(process) const env = process.env.NODE_ENV || 'dev'; const url = process.env.REMARK_URL || 'https://demo.remark42.com';