Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
LuoRan03 authored and Jocs committed Apr 25, 2018
1 parent 0fb2287 commit 2ffd2a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,10 @@ const webpackConfig = {
new HtmlWebpackPlugin({
// Your HtmlWebpackPlugin config
}),
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"development"' // "development" 是开发,"production"是生产。
},
}),
new SkeletonPlugin({
pathname: path.resolve(__dirname, `${customPath}`) // 生成名为 shell 文件存放地址
pathname: path.resolve(__dirname, `${customPath}`), // the path to store shell file
staticDir: path.resolve(__dirname, './dist'), // the same as the `output.path`
routes: ['/', '/search'], // Which routes you want to generate skeleton screen
})
]
}
Expand Down
10 changes: 4 additions & 6 deletions docs/i18n/zh_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,11 @@ const webpackConfig = {
new HtmlWebpackPlugin({
// Your HtmlWebpackPlugin config
}),
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"development"' // "development" 是开发,"production"是生产。
},
}),

new SkeletonPlugin({
pathname: path.resolve(__dirname, `${customPath}`) // 生成名为 shell 文件存放地址
pathname: path.resolve(__dirname, `${customPath}`), // 用来存储 shell 文件的地址
staticDir: path.resolve(__dirname, './dist'), // 最好和 `output.path` 相同
routes: ['/', '/search'], // 将需要生成骨架屏的路由添加到数组中
})
]
}
Expand Down

0 comments on commit 2ffd2a8

Please sign in to comment.