@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
- // 过滤掉所有 .html 文件,避免与 HtmlWebpackPlugin 生成的文件冲突
26
- return !source.endsWith('.html');
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.8-beta.3",
3
+ "version": "1.0.9-beta.1",
4
4
  "description": "QTCli是一款基于node的前端工程化底座",
5
5
  "homepage": "https://gitee.com/fengrengame/qtnode#readme",
6
6
  "bugs": {