Browse Source

fixed npm build cmd

all-modes
pbca26 8 years ago
parent
commit
8759e656be
  1. 3
      react/package.json
  2. 1
      react/webpack.config.js

3
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",

1
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'

Loading…
Cancel
Save