Skip to content

Commit

Permalink
chore: 更新默认模板
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Jun 11, 2020
1 parent 8de1a5b commit 52a3241
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/taro-cli/templates/default/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ const config = {
}]
]
},
plugins: [],
plugins: [<% if (css !== 'none') {%>
'@tarojs/plugin-<%= css %>',<%}%>
'@tarojs/plugin-terser'
],
defineConstants: {
},
mini: {
Expand Down
4 changes: 4 additions & 0 deletions packages/taro-cli/templates/default/pkg
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"build:h5": "taro build --type h5",
"build:rn": "taro build --type rn",
"build:qq": "taro build --type qq",
"build:jd": "taro build --type jd",
"build:quickapp": "taro build --type quickapp",
"dev:weapp": "npm run build:weapp -- --watch",
"dev:swan": "npm run build:swan -- --watch",
Expand All @@ -24,6 +25,7 @@
"dev:h5": "npm run build:h5 -- --watch",
"dev:rn": "npm run build:rn -- --watch",
"dev:qq": "npm run build:qq -- --watch",
"dev:jd": "npm run build:jd -- --watch",
"dev:quickapp": "npm run build:quickapp -- --watch"
},
"author": "",
Expand All @@ -50,6 +52,8 @@
"@types/react": "^16.4.6",
"@types/webpack-env": "^1.13.6",
"@tarojs/mini-runner": "<%= version %>",
"@tarojs/plugin-<%= css %>": "<%= version %>",<%}%>
"@tarojs/plugin-terser": "<%= version %>",
"@tarojs/webpack-runner": "<%= version %>",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
Expand Down

0 comments on commit 52a3241

Please sign in to comment.