Skip to content

Commit

Permalink
fix(cli): 根据模板创建项目给定默认 css 处理
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Jun 19, 2018
1 parent ac2e3df commit 17ee2d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-cli/templates/default/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = function (creater, params, helper, cb) {
stylus: 'styl',
none: 'css'
}
const currentStyleExt = styleExtMap[css]
const currentStyleExt = styleExtMap[css] || 'css'

fs.mkdirSync(projectPath)
fs.mkdirSync(sourceDir)
Expand Down

0 comments on commit 17ee2d3

Please sign in to comment.