Skip to content

Commit

Permalink
fix(template): 更新 Taro 2.0 的模版和下载地址 #4837
Browse files Browse the repository at this point in the history
  • Loading branch information
Garfield550 authored and luckyadam committed Dec 16, 2019
1 parent 76f9aa4 commit 4c945f6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/taro-cli/src/util/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,6 @@ export const taroJsMobxCommon = '@tarojs/mobx-common'
export const DEVICE_RATIO_NAME = 'deviceRatio'
export const isWindows = os.platform() === 'win32'

export const DEFAULT_TEMPLATE_SRC = 'github:NervJS/taro-project-templates'
export const DEFAULT_TEMPLATE_SRC = 'github:NervJS/taro-project-templates#next'
export const TARO_CONFIG_FLODER = '.taro'
export const TARO_BASE_CONFIG = 'index.json'
5 changes: 2 additions & 3 deletions packages/taro-cli/templates/default/config/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ module.exports = {
env: {
NODE_ENV: '"development"'
},
defineConstants: {
},
weapp: {},
defineConstants: {},
mini: {},
h5: {}
}
4 changes: 1 addition & 3 deletions packages/taro-cli/templates/default/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ const config = {
postcss: {
pxtransform: {
enable: true,
config: {

}
config: {}
},
url: {
enable: true,
Expand Down
5 changes: 2 additions & 3 deletions packages/taro-cli/templates/default/config/prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ module.exports = {
env: {
NODE_ENV: '"production"'
},
defineConstants: {
},
weapp: {},
defineConstants: {},
mini: {},
h5: {
/**
* 如果h5端编译后体积过大,可以使用webpack-bundle-analyzer插件对打包体积进行分析。
Expand Down

0 comments on commit 4c945f6

Please sign in to comment.