Skip to content

Commit 1682ff7

Browse files
committed
fix: fix ESDIR errors when outputDir contains dots
closes #2414 When `toType` is not specified, copy-webpack-plugin will infer it from the value of `to`. So if it contains one or more dots, it would be treated as a file with extension.
1 parent 0909bc8 commit 1682ff7

File tree

1 file changed

+1
-0
lines changed
  • packages/@vue/cli-service/lib/config

1 file changed

+1
-0
lines changed

packages/@vue/cli-service/lib/config/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ module.exports = (api, options) => {
262262
.use(require('copy-webpack-plugin'), [[{
263263
from: publicDir,
264264
to: outputDir,
265+
toType: 'dir',
265266
ignore: publicCopyIgnore
266267
}]])
267268
}

0 commit comments

Comments
 (0)