Skip to content

Commit

Permalink
fix(cli):修复配置ignore时变量被赋值为true (#1212)
Browse files Browse the repository at this point in the history
  • Loading branch information
F.C authored and luckyadam committed Nov 22, 2018
1 parent 341101a commit f86c424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-cli/src/weapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -1860,7 +1860,7 @@ function copyFiles () {
if (fs.existsSync(from)) {
const copyOptions = {}
if (ignore) {
ignore = Array.isArray(ignore) || [ignore]
ignore = Array.isArray(ignore) ? ignore : [ignore]
copyOptions.filter = src => {
let isMatch = false
ignore.forEach(iPa => {
Expand Down

0 comments on commit f86c424

Please sign in to comment.