@itera-web/cli 1.1.62 → 1.1.63

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.
@@ -68,7 +68,7 @@ module.exports = {
68
68
  plugins: [
69
69
  new html_webpack_plugin_1.default({
70
70
  filename: 'index.html',
71
- template: resolve('public/index.html'),
71
+ template: resolve('public/base.html'),
72
72
  hash: true,
73
73
  minify: {
74
74
  removeAttributeQuotes: true,
@@ -83,6 +83,7 @@ module.exports = {
83
83
  }),
84
84
  new webpackbar_1.default({ reporters: ['profile'], profile: true }),
85
85
  new node_polyfill_webpack_plugin_1.default(),
86
+ isProd() && new sortSrciptTag_js_1.default(),
86
87
  ],
87
88
  stats: {
88
89
  assets: true,
@@ -52,6 +52,7 @@ var SortScriptTagPlugin = (function () {
52
52
  });
53
53
  var newHtml = $.html();
54
54
  compilation.updateAsset(htmlName, new webpack_1.sources.RawSource(newHtml));
55
+ log_1.Console.success('引用排序完毕');
55
56
  });
56
57
  });
57
58
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itera-web/cli",
3
- "version": "1.1.62",
3
+ "version": "1.1.63",
4
4
  "bin": {
5
5
  "itera-cli": "./bin/index.js"
6
6
  },