mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-12 22:46:30 +08:00
- [x] Utilize webpack 4 development and production modes - [x] Upgrade webpack dev server - [x] Webpack 4 compatible release of thread-loader - [x] Webpack 4 compatible release of HtmlWebpackPlugin - [x] Webpack 4 compatible release of SwPrecacheWebpackPlugin - [x] Webpack 4 compatible release of WebpackManifestPlugin - [x] Update README - [x] Update WebpackDevServerUtils - [x] Update InterpolateHtmlPlugin - [x] Update ModuleScopePlugin - [x] Update WatchMissingNodeModulesPlugin - [x] Move UglifyJS options to webpack 4 optimize - [x] Move InterpolateHtmlPlugin to make it tapable on HtmlWebpackPlugin - [x] vendor splitting via splitChunks.splitChunks (https://twitter.com/wSokra/status/969633336732905474) - [x] long term caching via splitChunks.runtimeChunk (https://twitter.com/wSokra/status/969679223278505985) - [x] Make sure process.env.NODE_ENV is proxied correctly to `react-error-overlay` - [x] Implicit webpack.NamedModulesPlugin in dev config as its default in webpack 4 - [x] Disable webpack performance hints as we have our own filesize reporter - [x] Replace ExtractTextPlugin with MiniCssExtractPlugin - [x] Switch to css whole file minification via OptimizeCSSAssetsPlugin rather than per module css minification to gain performance
44 lines
1.4 KiB
JSON
44 lines
1.4 KiB
JSON
{
|
|
"private": true,
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"scripts": {
|
|
"build": "cd packages/react-scripts && node bin/react-scripts.js build",
|
|
"changelog": "lerna-changelog",
|
|
"create-react-app": "node tasks/cra.js",
|
|
"e2e": "tasks/e2e-simple.sh",
|
|
"e2e:docker": "tasks/local-test.sh",
|
|
"postinstall": "cd packages/react-error-overlay/ && yarn build:prod",
|
|
"publish": "tasks/publish.sh",
|
|
"start": "cd packages/react-scripts && node bin/react-scripts.js start",
|
|
"screencast": "node ./tasks/screencast.js",
|
|
"screencast:error": "svg-term --cast jyu19xGl88FQ3poMY8Hbmfw8y --out screencast-error.svg --window --at 12000 --no-cursor",
|
|
"test": "cd packages/react-scripts && node bin/react-scripts.js test --env=jsdom",
|
|
"format": "prettier --trailing-comma es5 --single-quote --write 'packages/*/*.js' 'packages/*/!(node_modules)/**/*.js'",
|
|
"precommit": "lint-staged"
|
|
},
|
|
"devDependencies": {
|
|
"eslint": "4.19.1",
|
|
"execa": "^0.10.0",
|
|
"husky": "^0.14.3",
|
|
"lerna": "2.9.1",
|
|
"lerna-changelog": "^0.7.0",
|
|
"lint-staged": "^7.0.5",
|
|
"meow": "^4.0.0",
|
|
"multimatch": "^2.1.0",
|
|
"prettier": "1.12.1",
|
|
"svg-term-cli": "^2.1.1",
|
|
"tempy": "^0.2.1"
|
|
},
|
|
"lint-staged": {
|
|
"*.js": [
|
|
"prettier --trailing-comma es5 --single-quote --write",
|
|
"git add"
|
|
],
|
|
"yarn.lock": [
|
|
"git rm --cached"
|
|
]
|
|
}
|
|
}
|