From 6566bc74126f73ea2d3e75aa04ba6b7b9df24769 Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Sun, 8 Apr 2018 14:53:24 +0300 Subject: [PATCH] get back build compress --- web/package.json | 2 +- web/webpack.config.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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';