Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
hfpp2012
/
react-spd
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 60f7ac85
authored
May 19, 2017
by
hfpp2012 yinsigan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix readme
1 parent
9ad2e4cf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
readme.md
readme.md
View file @
60f7ac8
...
@@ -10,4 +10,16 @@ yarn add babel-loader babel-core babel-preset-es2015 babel-preset-react --dev
...
@@ -10,4 +10,16 @@ yarn add babel-loader babel-core babel-preset-es2015 babel-preset-react --dev
yarn add html-webpack-plugin
yarn add html-webpack-plugin
yarn add react react-dom
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'
}
```
```
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment