@seayoo-web/scripts 2.0.6 → 2.0.7
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.
- package/dist/index.js +7 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -150,12 +150,16 @@ function definePageBuildConfig(option) {
|
|
|
150
150
|
const gitInfo = onlyBuild ? null : await getCommitInfo(command, mode, envs.page, envs.deployTo || "");
|
|
151
151
|
const isProductMode = mode === "production" || mode === "prod";
|
|
152
152
|
const trunkMap = {
|
|
153
|
+
...manualChunks,
|
|
153
154
|
"naive-ui": "naive-ui",
|
|
154
155
|
html2canvas: "html2canvas",
|
|
155
156
|
thinkingdata: "thinkingdata",
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
pinia: "vue",
|
|
158
|
+
"vue-router": "vue",
|
|
159
|
+
"plugin-vue:": "vue",
|
|
160
|
+
"/vue/": "vue",
|
|
161
|
+
"/@vue": "vue",
|
|
162
|
+
node_modules: "vendor"
|
|
159
163
|
};
|
|
160
164
|
const trunkKeys = Object.keys(trunkMap).sort((a, b) => a === "node_modules" ? 1 : b === "node_modules" ? -1 : 0);
|
|
161
165
|
const trunkFn = function(id) {
|