feat: add vite-plugin-libcss to package.json and update configuration
All checks were successful
Publish to npm / publish (push) Successful in 24s

This commit is contained in:
Astrian Zheng 2025-02-25 13:05:39 +11:00
parent 593ef1b2e8
commit 8232a1af3f
Signed by: Astrian
SSH Key Fingerprint: SHA256:rVnhx3DAKjujCwWE13aDl7uV6+9U1MvydLkNRXJrBiA
3 changed files with 17 additions and 1 deletions

14
package-lock.json generated
View File

@ -15,6 +15,7 @@
"sass-embedded": "^1.85.0",
"typescript": "~5.7.2",
"vite": "^6.1.0",
"vite-plugin-libcss": "^1.1.1",
"vue-tsc": "^2.2.0"
},
"peerDependencies": {
@ -1823,6 +1824,19 @@
}
}
},
"node_modules/vite-plugin-libcss": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/vite-plugin-libcss/-/vite-plugin-libcss-1.1.1.tgz",
"integrity": "sha512-WAk6U9iYWMbcu7cdw4wACpVebZiLHMyyE9KTcBzzkTt1cnXj3a7loIoIGNblx+xMb9quPpO3iRbNTOnIFDzgmg==",
"dev": true,
"license": "MIT",
"dependencies": {
"minimatch": "^9.0.1"
},
"peerDependencies": {
"vite": "*"
}
},
"node_modules/vscode-uri": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.1.0.tgz",

View File

@ -19,6 +19,7 @@
"sass-embedded": "^1.85.0",
"typescript": "~5.7.2",
"vite": "^6.1.0",
"vite-plugin-libcss": "^1.1.1",
"vue-tsc": "^2.2.0"
},
"exports": {

View File

@ -1,10 +1,11 @@
import { defineConfig } from 'vite'
import { fileURLToPath, URL } from 'node:url'
import vue from '@vitejs/plugin-vue'
import libCss from 'vite-plugin-libcss'
// https://vite.dev/config/
export default defineConfig(({ mode }) => ({
plugins: [vue()],
plugins: [vue(), libCss()],
build: {
lib: {
entry: fileURLToPath(new URL('src/index.ts', import.meta.url)),