Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"ace-builds": "^1.36.4",
"axios": "1.8.2",
"chokidar": "^4.0.0",
"core-js": "^3.38.1",
"echarts": "5.5.1",
"element-plus": "^2.13.6",
"highlight.js": "^11.10.0",
Expand Down Expand Up @@ -61,8 +60,7 @@
"@unocss/extractor-svelte": "^66.4.2",
"@unocss/preset-wind3": "^66.4.2",
"@unocss/vite": "^66.5.0",
"@vitejs/plugin-legacy": "^6.0.0",
"@vitejs/plugin-vue": "^5.0.3",
"@vitejs/plugin-vue": "^6.0.6",
"@vue/cli-plugin-babel": "~5.0.8",
"@vue/cli-plugin-eslint": "~5.0.8",
"@vue/cli-plugin-router": "~5.0.8",
Expand All @@ -77,11 +75,10 @@
"eslint-plugin-vue": "^9.19.2",
"globals": "^16.3.0",
"sass": "^1.78.0",
"terser": "^5.31.6",
"vite": "^6.2.3",
"vite": "^8.0.10",
"vite-check-multiple-dom": "0.2.1",
"vite-plugin-banner": "^0.8.0",
"vite-plugin-importer": "^0.2.5",
"vite-plugin-vue-devtools": "^7.0.16"
"vite-plugin-vue-devtools": "^8.1.1"
}
}
2 changes: 1 addition & 1 deletion web/src/view/person/person.vue
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@
]
</script>

<style lang="scss">
<style scoped lang="scss">
.profile-container {
@apply p-4 lg:p-6 min-h-screen bg-gray-50 dark:bg-slate-900;

Expand Down
47 changes: 13 additions & 34 deletions web/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import legacyPlugin from '@vitejs/plugin-legacy'
import { viteLogo } from './src/core/config'
import Banner from 'vite-plugin-banner'
import * as path from 'path'
Expand All @@ -19,23 +18,11 @@ export default ({ mode }) => {

const timestamp = Date.parse(new Date())

const optimizeDeps = {}

const alias = {
'@': path.resolve(__dirname, './src'),
'@': path.resolve(import.meta.dirname, './src'),
vue$: 'vue/dist/vue.runtime.esm-bundler.js'
Comment on lines 21 to 23
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你知道怎么写代码么你?项目你跑过吗?被坦克压过腿吗?

}

const esbuild = {}

const rollupOptions = {
output: {
entryFileNames: 'assets/087AC4D233B64EB0[name].[hash].js',
chunkFileNames: 'assets/087AC4D233B64EB0[name].[hash].js',
assetFileNames: 'assets/087AC4D233B64EB0[name].[hash].[ext]'
}
}

const base = '/'
const root = './'
const outDir = 'dist'
Expand Down Expand Up @@ -78,34 +65,26 @@ export default ({ mode }) => {
}
},
build: {
minify: 'terser', // 是否进行压缩,boolean | 'terser' | 'esbuild',默认使用terser
manifest: false, // 是否产出manifest.json
sourcemap: false, // 是否产出sourcemap.json
outDir: outDir, // 产出目录
terserOptions: {
compress: {
//生产环境时移除console
drop_console: true,
drop_debugger: true
target: 'es2015',
rolldownOptions: {
output: {
minify: {
compress: {
dropConsole: true, // 删除所有 console.*
}
},
entryFileNames: 'assets/087AC4D233B64EB0[name].[hash].js',
chunkFileNames: 'assets/087AC4D233B64EB0[name].[hash].js',
assetFileNames: 'assets/087AC4D233B64EB0[name].[hash].[ext]'
}
},
rollupOptions
}
},
esbuild,
optimizeDeps,
plugins: [
env.VITE_POSITION === 'open' &&
vueDevTools({ launchEditor: env.VITE_EDITOR }),
legacyPlugin({
targets: [
'Android > 39',
'Chrome >= 60',
'Safari >= 10.1',
'iOS >= 10.3',
'Firefox >= 54',
'Edge >= 15'
]
}),
vuePlugin(),
svgBuilder(['./src/plugin/', './src/assets/icons/'], base, outDir, 'assets', mode),
[Banner(`\n Build based on gin-vue-admin \n Time : ${timestamp}`)],
Expand Down
Loading