Browse Source

master

master
邓宏 3 years ago
parent
commit
e4615d054e
  1. 3
      package.json
  2. 10
      pnpm-lock.yaml
  3. 5
      vite.config.js

3
package.json

@ -3,6 +3,7 @@
"private": true,
"version": "0.0.0",
"scripts": {
"init": "pnpm i",
"dev": "vite dev",
"build": "vite build"
},
@ -16,7 +17,7 @@
"devDependencies": {
"@vitejs/plugin-vue": "^2.3.3",
"@vitejs/plugin-vue-jsx": "^1.3.10",
"black-knight": "1.3.1",
"black-knight": "1.3.16",
"less": "^4.1.2",
"less-loader": "~7.3.0",
"sass-resources-loader": "^2.2.5",

10
pnpm-lock.yaml

@ -3,7 +3,7 @@ lockfileVersion: 5.3
specifiers:
'@vitejs/plugin-vue': ^2.3.3
'@vitejs/plugin-vue-jsx': ^1.3.10
black-knight: 1.3.1
black-knight: 1.3.12
element-plus: ^2.2.1
less: ^4.1.2
less-loader: ~7.3.0
@ -24,7 +24,7 @@ dependencies:
devDependencies:
'@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36
'@vitejs/plugin-vue-jsx': 1.3.10
black-knight: 1.3.1
black-knight: 1.3.12
less: 4.1.2
less-loader: 7.3.0_less@4.1.2
sass-resources-loader: 2.2.5
@ -594,8 +594,8 @@ packages:
resolution: {integrity: sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==}
dev: true
/black-knight/1.3.1:
resolution: {integrity: sha512-O13JfhCD3g1KLDuyPb5rwZN3d6qy9QdxbtfuHTlOM3b5PatQy9fF7utm5RtJkTa86Zzs/8i8IcPZYb0JrgTqFA==}
/black-knight/1.3.12:
resolution: {integrity: sha512-UKx8irAiioRYc51BsbEOZmCpbszGeLcRQBn0AapmHZl+KqskZzOr9GaZjmBBmqU/XpXE0kxA6SdddFLtcb/NCA==}
dev: true
/brace-expansion/1.1.11:
@ -1054,7 +1054,7 @@ packages:
optional: true
/image-size/0.5.5:
resolution: {integrity: sha1-Cd/Uq50g4p6xw+gLiZA3jfnjy5w=}
resolution: {integrity: sha512-6TDAlDPZxUFCv+fuOkIoXT/V/f3Qbq8e37p+YOiYrUv3v9cc3/6x78VdfPgFVaB9dZYeLUfKgHRebpkm/oP2VQ==}
engines: {node: '>=0.10.0'}
hasBin: true
requiresBuild: true

5
vite.config.js

@ -24,10 +24,11 @@ export default defineConfig({
outDir:"dist",
assetsDir:"static",
cssCodeSplit:true, // 拆分css代码
brotliSize: false, // 压缩代码
rollupOptions:{
input:{ // 多项目打包
index: path.resolve(__dirname, 'index.html'),
// demo: path.resolve(__dirname, './src/demo.js'),
// index: path.resolve(__dirname, 'index.html'),
demo: path.resolve(__dirname, './src/demo.js'),
},
// external:['vue'], // 控制插件不编译
output: {

Loading…
Cancel
Save