@pubinfo/vite 2.1.9 → 2.1.10-beta.2
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.mjs +7 -7
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -652,12 +652,12 @@ function createCompression(env) {
|
|
|
652
652
|
const plugin = [];
|
|
653
653
|
if (compressList.includes("gzip")) plugin.push(compression({
|
|
654
654
|
ext: ".gz",
|
|
655
|
-
deleteOriginFile:
|
|
655
|
+
deleteOriginFile: true
|
|
656
656
|
}));
|
|
657
657
|
if (compressList.includes("brotli")) plugin.push(compression({
|
|
658
658
|
ext: ".br",
|
|
659
659
|
algorithm: "brotliCompress",
|
|
660
|
-
deleteOriginFile:
|
|
660
|
+
deleteOriginFile: true
|
|
661
661
|
}));
|
|
662
662
|
return plugin;
|
|
663
663
|
}
|
|
@@ -734,12 +734,12 @@ function createVitePlugins(viteEnv, isBuild = false, config, type) {
|
|
|
734
734
|
createUnocss(),
|
|
735
735
|
createIcons(),
|
|
736
736
|
createMock(viteEnv, isBuild),
|
|
737
|
-
createInspector(config.devtools),
|
|
738
|
-
createPubinfoDevtoolsPlugin(),
|
|
737
|
+
!isBuild && createInspector(config.devtools),
|
|
738
|
+
!isBuild && createPubinfoDevtoolsPlugin(),
|
|
739
739
|
createOpenAPI(config.openapi),
|
|
740
740
|
createLibResolver(config.resolver),
|
|
741
741
|
createAppInfo(),
|
|
742
|
-
createVirtualInspector({ enabled: true }),
|
|
742
|
+
!isBuild && createVirtualInspector({ enabled: true }),
|
|
743
743
|
createSystemInfo()
|
|
744
744
|
];
|
|
745
745
|
if (type === "module") {
|
|
@@ -767,7 +767,6 @@ function createDefaultAppConfig(config) {
|
|
|
767
767
|
base: "./",
|
|
768
768
|
envDir: root,
|
|
769
769
|
server: {
|
|
770
|
-
open: true,
|
|
771
770
|
host: true,
|
|
772
771
|
proxy: getServerProxy(env, !isBuild && VITE_OPEN_PROXY === "true"),
|
|
773
772
|
warmup: { clientFiles: ["./index.html"] }
|
|
@@ -787,7 +786,8 @@ function createDefaultAppConfig(config) {
|
|
|
787
786
|
entryFileNames: `assets/entry/[name]-[hash]-${timestamp}.js`,
|
|
788
787
|
advancedChunks: { groups: [{
|
|
789
788
|
name: "pubinfo",
|
|
790
|
-
test: "pubinfo"
|
|
789
|
+
test: "pubinfo",
|
|
790
|
+
priority: 10
|
|
791
791
|
}] }
|
|
792
792
|
} }
|
|
793
793
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pubinfo/vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.10-beta.2",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.mts",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"vite-plugin-fake-server": "^2.2.0",
|
|
55
55
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
56
56
|
"vite-plugin-vue-devtools": "^8.0.0",
|
|
57
|
-
"@pubinfo/devtools": "2.1.
|
|
58
|
-
"@pubinfo/shared": "2.1.
|
|
57
|
+
"@pubinfo/devtools": "2.1.10-beta.2",
|
|
58
|
+
"@pubinfo/shared": "2.1.10-beta.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/fs-extra": "^11.0.4",
|