Skip to content

Commit 3c6a1de

Browse files
committed
fix: npm run dev
1 parent 6ccc7e0 commit 3c6a1de

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

configs/webpack.client.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ module.exports = {
2121
to: '../static' // copy to dist/views
2222
}]),
2323
new webpack.DefinePlugin({__CLIENT__: true, __SERVER__: false, __PRODUCTION__: true, __DEV__: false}),
24-
new webpack.DefinePlugin({'process.env': {NODE_ENV: '"production"'}}),
2524
new webpack.optimize.DedupePlugin(),
2625
new webpack.optimize.OccurenceOrderPlugin(),
2726
new webpack.optimize.UglifyJsPlugin({compress: {warnings: false}}),

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-setup",
33
"description": "A Universal React setup with i18n: Babel 6, Koa 2, React, React Router, React Transmit, React Bootstrap, React-intl, Mocha, Webpack HMR, PostCSS, ESLint.",
4-
"version": "2.2.8",
4+
"version": "2.2.9",
55
"author": "Duc Nguyen (https://github.com/ngduc)",
66
"license": "MIT",
77
"homepage": "https://github.com/ngduc/react-setup",
@@ -37,7 +37,7 @@
3737
"build-client": "webpack --colors --display-error-details --config configs/webpack.client.js",
3838
"build": "npm run clean && concurrently \"npm run build-server\" \"npm run build-client\" \"npm run build-msg\"",
3939
"watch-server": "webpack --watch --verbose --colors --display-error-details --config configs/webpack.server-watch.js",
40-
"watch-server-start": "just-wait --pattern \"dist/*.js\" && npm run start",
40+
"watch-server-start": "just-wait --pattern \"dist/*.js\" && npm run start-forever",
4141
"watch-client": "webpack-dev-server --config configs/webpack.client-watch.js",
4242
"dev": "npm run clean && concurrently --kill-others \"npm run watch-server-start\" \"npm run watch-server\" \"npm run watch-client\"",
4343
"test": "NODE_PATH=./src mocha --require ./tools/test/test-init --compilers js:babel-core/register ./src/**/*.spec.js --recursive",

0 commit comments

Comments
 (0)