mirror of
https://gitee.com/maimengcloud/xm-ui-web.git
synced 2025-12-30 02:02:26 +00:00
优化
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
const path = require('path')
|
||||
const fs = require('fs')
|
||||
|
||||
const libPackagePath = path.join(__dirname, 'src/plugins/datav/patch/package.json')
|
||||
const modulesPackagePath = path.join(__dirname, 'node_modules/@dataview/datav-vue3/package.json')
|
||||
|
||||
fs.writeFileSync(modulesPackagePath, fs.readFileSync(libPackagePath))
|
||||
@@ -22,8 +22,7 @@
|
||||
"lint:eslint": "eslint --fix --ext .js,.ts,.vue ./src",
|
||||
"lint:format": "prettier --write --loglevel warn \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"",
|
||||
"lint:style": "stylelint --fix \"./src/**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
|
||||
"lint:lint-staged": "lint-staged -c ",
|
||||
"postinstall": "node install-datav-patch.js"
|
||||
"lint:lint-staged": "lint-staged -c "
|
||||
},
|
||||
"dependencies": {
|
||||
"@dataview/datav-vue3": "0.0.0-test.1672506674342",
|
||||
@@ -51,7 +50,7 @@
|
||||
"docxtemplater-image-module-free": "^1.1.1",
|
||||
"driver.js": "^1.3.1",
|
||||
"echarts": "^5.5.1",
|
||||
"echarts-wordcloud": "^2.1.0",
|
||||
"echarts-wordcloud": "2.1.0",
|
||||
"element-plus": "2.9.7",
|
||||
"fast-xml-parser": "^4.4.1",
|
||||
"file-saver": "^2.0.5",
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// 引入unocss css
|
||||
import '@/plugins/unocss'
|
||||
//import '@/plugins/unocss'
|
||||
import 'virtual:uno.css' // 必须引入以生成 CSS 占位符
|
||||
|
||||
// 导入全局的svg图标
|
||||
import '@/plugins/svgIcon'
|
||||
|
||||
@@ -94,6 +94,13 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
|
||||
drop_debugger: env.VITE_DROP_DEBUGGER === 'true',
|
||||
drop_console: env.VITE_DROP_CONSOLE === 'true'
|
||||
}
|
||||
},
|
||||
rollupOptions: {
|
||||
preserveEntrySignatures: 'strict',
|
||||
treeshake: {
|
||||
moduleSideEffects: (id) =>
|
||||
id.includes('zrender') || true
|
||||
}
|
||||
}
|
||||
},
|
||||
optimizeDeps: { include, exclude }
|
||||
|
||||
Reference in New Issue
Block a user