This commit is contained in:
万纯 2021-03-04 11:16:44 +08:00
commit 7460db344f

View File

@ -250,11 +250,13 @@ export default async function getConfig({
};
}))].filter(Boolean);
// const publicCopyIgnore = ['.DS_Store'];
webpackConfig
.plugin('copy')
.use(require.resolve('copy-webpack-plugin'), [{
patterns: copyPatterns
}]);
if (copyPatterns.length) {
webpackConfig
.plugin('copy')
.use(require.resolve('copy-webpack-plugin'), [{
patterns: copyPatterns
}]);
}
// --------------- define -----------
createDefineWebpackConfig({