From 8759e656bea5c8fa88ba30154e8b69ecd7b4d170 Mon Sep 17 00:00:00 2001 From: pbca26 Date: Wed, 31 May 2017 08:20:17 +0300 Subject: [PATCH] fixed npm build cmd --- react/package.json | 3 +-- react/webpack.config.js | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/react/package.json b/react/package.json index fab8aec..9dd3a2f 100644 --- a/react/package.json +++ b/react/package.json @@ -5,8 +5,7 @@ "main": "src/index.js", "scripts": { "start": "webpack-dashboard -t 'EDEX-ReactJS' -- webpack-dev-server --colors --no-info", - "build": "rm -rf ./build && NODE_ENV=\"production\" webpack", - "build_dist": " webpack -p --config ./webpack.config.js", + "build": "rm -rf ./build && mkdir build && mkdir build/assets && cp -R src/assets build/ && NODE_ENV=\"production\" webpack", "lint-break-on-errors": "eslint ./src ./webpack.config.js -f table --ext .js --ext .jsx", "lint": "eslint ./src ./webpack.config.js -f table --ext .js --ext .jsx || true", "preview": "NODE_ENV=\"production\" ./node_modules/webpack-dashboard/bin/webpack-dashboard.js -t 'Preview Mode - EDEX' -- ./node_modules/webpack-dev-server/bin/webpack-dev-server.js", diff --git a/react/webpack.config.js b/react/webpack.config.js index 245c7e4..2d761cf 100644 --- a/react/webpack.config.js +++ b/react/webpack.config.js @@ -123,7 +123,6 @@ if (isProduction) { loader: ExtractTextPlugin.extract({ fallback: 'style-loader', use: [ - 'style-loader', 'css-loader', 'postcss-loader', 'sass-loader'