Skip to content

Commit

Permalink
fix(cli): 更新默认模板
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Jan 7, 2020
1 parent bd2354a commit cb50115
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
12 changes: 1 addition & 11 deletions packages/taro-cli/templates/default/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,8 @@ const config = {
plugins: [],
defineConstants: {
},
weapp: {
mini: {
postcss: {
autoprefixer: {
enable: true,
config: {
browsers: [
'last 3 versions',
'Android >= 4.1',
'ios >= 8'
]
}
},
pxtransform: {
enable: true,
config: {
Expand Down
5 changes: 1 addition & 4 deletions packages/taro-cli/templates/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@
"devDependencies": {
"@types/react": "^16.4.6",
"@types/webpack-env": "^1.13.6",
"@tarojs/plugin-babel": "<%= version %>",
"@tarojs/plugin-csso": "<%= version %>",<% if (css !== 'none') {%>
"@tarojs/plugin-<%= css %>": "<%= version %>",<%}%>
"@tarojs/plugin-uglifyjs": "<%= version %>",
"@tarojs/mini-runner": "<%= 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 cb50115

Please sign in to comment.