We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
CopyOption
1 parent 4eeb8f7 commit 6a47fe6Copy full SHA for 6a47fe6
1 file changed
src/extends/unified/prod.js
@@ -59,13 +59,14 @@ module.exports = function unifiedExtend(api, opts) {
59
if (staticPaths.length) {
60
const CopyWebpackPlugin = tryRequire('copy-webpack-plugin');
61
if (CopyWebpackPlugin) {
62
+ const outputDir = webpackChain.output.get('path');
63
webpackChain
64
.plugin('copy')
65
.use(CopyWebpackPlugin, [ staticPaths.map(publicDir => {
66
return {
67
from: publicDir,
- // to: options.outputDir, // 自动使用 webpack 配置
68
- toType: 'dir',
+ to: outputDir,
69
+ // toType: 'dir',
70
ignore: publicCopyIgnore,
71
};
72
}) ]);
0 commit comments