Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

修复windows环境运行等问题 #39

Merged
merged 2 commits into from
Jun 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions example/ssr-with-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
},
"scripts": {
"debug": "egg-bin debug",
"start": "concurrently \"npm run ssr\" \" npm run csr \"",
"ssr": "rm -rf dist && concurrently \"egg-bin dev\" \"NODE_ENV=development webpack --watch --config ./build/webpack.config.server.js\"",
"csr": "NODE_ENV=development webpack-dev-server --port 8000 --hot --client-log-level error --config ./build/webpack.config.client.js",
"start": "rm -rf dist && concurrently \"npm run ssr\" \" npm run csr \"",
"ssr": "concurrently \"egg-bin dev\" \"cross-env NODE_ENV=development webpack --watch --config ./build/webpack.config.server.js\"",
"csr": "cross-env NODE_ENV=development webpack-dev-server --port 8000 --hot --client-log-level error --config ./build/webpack.config.client.js",
"prod": "npm run build && eggctl start",
"build:server": "NODE_ENV=production webpack --config build/webpack.config.server.js",
"build": "rm -rf dist && NODE_ENV=production webpack --config build/webpack.config.client.js && npm run build:server",
"analyze": "NODE_ENV=production npm_config_report=true npm run build"
"build:server": "cross-env NODE_ENV=production webpack --config build/webpack.config.server.js",
"build": "cross-env NODE_ENV=production webpack --config build/webpack.config.client.js && npm run build:server",
"analyze": "cross-env NODE_ENV=production npm_config_report=true npm run build"
},
"browserslist": [
">0.2%",
Expand All @@ -43,6 +43,7 @@
"browserslist": "^4.6.3",
"caniuse-lite": "1.0.30000974",
"concurrently": "^4.1.0",
"cross-env": "^5.2.0",
"css-hot-loader": "^1.4.3",
"css-loader": "1.0.0",
"css-modules-require-hook": "^4.2.3",
Expand Down