@qingtian/qtcli 1.0.8-beta.3 → 1.0.9
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
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qingtian/qtcli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "QTCli是一款基于node的前端工程化底座",
|
|
5
5
|
"homepage": "https://gitee.com/fengrengame/qtnode#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -198,4 +198,4 @@
|
|
|
198
198
|
"jest-watch-typeahead": "^1.0.0"
|
|
199
199
|
},
|
|
200
200
|
"email": "296963166@qq.com"
|
|
201
|
-
}
|
|
201
|
+
}
|