Skip to content

Commit

Permalink
feat(cli): 模板中增加了wba插件的注释
Browse files Browse the repository at this point in the history
  • Loading branch information
Littly committed Mar 20, 2019
1 parent 3281851 commit 2f39b8c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 4 deletions.
11 changes: 10 additions & 1 deletion packages/taro-cli/templates/default/config/prod
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,14 @@ module.exports = {
defineConstants: {
},
weapp: {},
h5: {}
h5: {
/**
* 如果h5端编译后体积过大,可以使用webpack-bundle-analyzer插件对打包体积进行分析。
* 参考代码如下:
* webpackChain (chain) {
* chain.plugin('analyzer')
* .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, [])
* }
*/
}
}
11 changes: 10 additions & 1 deletion packages/taro-cli/templates/mobx/config/prod
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,14 @@ module.exports = {
defineConstants: {
},
weapp: {},
h5: {}
h5: {
/**
* 如果h5端编译后体积过大,可以使用webpack-bundle-analyzer插件对打包体积进行分析。
* 参考代码如下:
* webpackChain (chain) {
* chain.plugin('analyzer')
* .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, [])
* }
*/
}
}
11 changes: 10 additions & 1 deletion packages/taro-cli/templates/redux/config/prod
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,14 @@ module.exports = {
defineConstants: {
},
weapp: {},
h5: {}
h5: {
/**
* 如果h5端编译后体积过大,可以使用webpack-bundle-analyzer插件对打包体积进行分析。
* 参考代码如下:
* webpackChain (chain) {
* chain.plugin('analyzer')
* .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, [])
* }
*/
}
}
11 changes: 10 additions & 1 deletion packages/taro-cli/templates/wxcloud/client/config/prod
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,14 @@ module.exports = {
defineConstants: {
},
weapp: {},
h5: {}
h5: {
/**
* 如果h5端编译后体积过大,可以使用webpack-bundle-analyzer插件对打包体积进行分析。
* 参考代码如下:
* webpackChain (chain) {
* chain.plugin('analyzer')
* .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, [])
* }
*/
}
}

0 comments on commit 2f39b8c

Please sign in to comment.