@itera-web/cli 1.1.60 → 1.1.62
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.
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var cheerio_1 = __importDefault(require("cheerio"));
|
|
7
7
|
var webpack_1 = require("webpack");
|
|
8
|
+
var log_1 = require("../public/log");
|
|
8
9
|
var SortScriptTagPlugin = (function () {
|
|
9
10
|
function SortScriptTagPlugin() {
|
|
10
11
|
}
|
|
@@ -14,6 +15,7 @@ var SortScriptTagPlugin = (function () {
|
|
|
14
15
|
name: 'SortScriptTagPlugin',
|
|
15
16
|
stage: webpack_1.Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE,
|
|
16
17
|
}, function (assets) {
|
|
18
|
+
log_1.Console.cyan('开始排序引用');
|
|
17
19
|
var htmlName = 'index.html';
|
|
18
20
|
var asset = compilation.getAsset(htmlName);
|
|
19
21
|
if (!asset)
|