Skip to content

Commit e960ae5

Browse files
authored
fix: Do not display an error message on empty public folder (#6333)
copy-webpack-plugin will generate an error on missing file(s). For SPA, error occurs If 'public' folder only contains index.html or 'public' folder is empty.
1 parent 985f2ff commit e960ae5

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
@@ -244,6 +244,7 @@ module.exports = (api, options) => {
244244
from: publicDir,
245245
to: outputDir,
246246
toType: 'dir',
247+
noErrorOnMissing: true,
247248
globOptions: {
248249
ignore: publicCopyIgnore
249250
}

0 commit comments

Comments
 (0)