@seayoo-web/scripts 2.0.7 → 2.0.8
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 +3 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -173,7 +173,7 @@ function definePageBuildConfig(option) {
|
|
|
173
173
|
outDir: join(process.cwd(), "./dist"),
|
|
174
174
|
assetsDir: "assets",
|
|
175
175
|
reportCompressedSize: false,
|
|
176
|
-
sourcemap: command === "build" && !!envs.sentryAuthToken,
|
|
176
|
+
sourcemap: command === "build" && !!envs.sentryAuthToken ? "hidden" : false,
|
|
177
177
|
...build,
|
|
178
178
|
rollupOptions: {
|
|
179
179
|
output: {
|
|
@@ -217,6 +217,8 @@ function definePageBuildConfig(option) {
|
|
|
217
217
|
...plugins,
|
|
218
218
|
command === "build" && envs.deployTo && !onlyBuild && gitInfo ? viteDeployPlugin({
|
|
219
219
|
deployTo: envs.deployTo,
|
|
220
|
+
// 忽略 js sourcemap 文件
|
|
221
|
+
ignoreFiles: ["*.js.map"],
|
|
220
222
|
user: envs.deployUser,
|
|
221
223
|
key: envs.deployKey,
|
|
222
224
|
debug: envs.deployDebug,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seayoo-web/scripts",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "scripts for seayoo web repos",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"terser": "^5.39.0",
|
|
51
51
|
"vite-plugin-stylelint": "^6.0.0",
|
|
52
52
|
"vite-plugin-vue-devtools": "^7.7.5",
|
|
53
|
-
"@seayoo-web/finder": "^2.0.
|
|
53
|
+
"@seayoo-web/finder": "^2.0.15"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/fs-extra": "^11.0.4",
|