@qingtian/qtcli 1.0.8-beta.3 → 1.0.9-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22,8 +22,13 @@ exports.default = merge(baseConfig, {
|
|
|
22
22
|
from: path.resolve(process.cwd(), './public'),
|
|
23
23
|
to: baseConfig.output.path,
|
|
24
24
|
filter: function (source) {
|
|
25
|
-
//
|
|
26
|
-
|
|
25
|
+
// 只过滤掉与入口同名的 .html(由 HtmlWebpackPlugin 生成),其余 .html 放行
|
|
26
|
+
if (source.endsWith('.html')) {
|
|
27
|
+
var entryNames = Object.keys(baseConfig.entry);
|
|
28
|
+
var basename = path.basename(source, '.html');
|
|
29
|
+
return !entryNames.includes(basename);
|
|
30
|
+
}
|
|
31
|
+
return true;
|
|
27
32
|
},
|
|
28
33
|
},
|
|
29
34
|
],
|