feat: production mode compressed image
正在显示
build/vite/plugin/imagemin.ts
0 → 100644
| ... | @@ -5,7 +5,7 @@ | ... | @@ -5,7 +5,7 @@ |
| "bootstrap": "yarn install", | "bootstrap": "yarn install", | ||
| "serve": "vite", | "serve": "vite", | ||
| "dev": "vite", | "dev": "vite", | ||
| "build": "cross-env NODE_ENV=production vite build && esno ./build/script/postBuild.ts", | "build": "vite build && esno ./build/script/postBuild.ts", | ||
| "build:no-cache": "yarn clean:cache && npm run build", | "build:no-cache": "yarn clean:cache && npm run build", | ||
| "report": "cross-env REPORT=true npm run build ", | "report": "cross-env REPORT=true npm run build ", | ||
| "preview": "npm run build && vite preview", | "preview": "npm run build && vite preview", | ||
| ... | @@ -95,6 +95,7 @@ | ... | @@ -95,6 +95,7 @@ |
| "typescript": "^4.1.3", | "typescript": "^4.1.3", | ||
| "vite": "2.0.0-beta.64", | "vite": "2.0.0-beta.64", | ||
| "vite-plugin-html": "^2.0.0", | "vite-plugin-html": "^2.0.0", | ||
| "vite-plugin-imagemin": "^0.2.0", | |||
| "vite-plugin-mock": "^2.0.1", | "vite-plugin-mock": "^2.0.1", | ||
| "vite-plugin-purge-icons": "^0.6.0", | "vite-plugin-purge-icons": "^0.6.0", | ||
| "vite-plugin-pwa": "^0.4.2", | "vite-plugin-pwa": "^0.4.2", | ||
| ... | @@ -103,6 +104,10 @@ | ... | @@ -103,6 +104,10 @@ |
| "vue-eslint-parser": "^7.4.1", | "vue-eslint-parser": "^7.4.1", | ||
| "yargs": "^16.2.0" | "yargs": "^16.2.0" | ||
| }, | }, | ||
| "resolutions": { | |||
| "//": "Used to install imagemin dependencies, because imagemin may not be installed in China.If it is abroad, you can delete it", | |||
| "bin-wrapper": "npm:bin-wrapper-china" | |||
| }, | |||
| "repository": { | "repository": { | ||
| "type": "git", | "type": "git", | ||
| "url": "git+https://github.com/anncwb/vue-vben-admin.git" | "url": "git+https://github.com/anncwb/vue-vben-admin.git" | ||
| ... | ... |
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
请
注册
或者
登录
后发表评论