Commit 60f7ac85 by hfpp2012 yinsigan

fix readme

1 parent 9ad2e4cf
Showing 1 changed file with 12 additions and 0 deletions
......@@ -10,4 +10,16 @@ yarn add babel-loader babel-core babel-preset-es2015 babel-preset-react --dev
yarn add html-webpack-plugin
yarn add react react-dom
# 产品编译及压缩
# https://webpack.js.org/guides/production-build/
webpack -p
# 线上环境产生文件名带md5的文件
# https://webpack.js.org/guides/caching/
output: {
path: path.resolve('dist'),
filename: '[name].[chunkhash]_bundle.js'
}
```
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!