From d50c9ae92fbe9c72268f3710aa8b3fea22b64fd9 Mon Sep 17 00:00:00 2001 From: Bence Markus Date: Mon, 20 Nov 2023 00:33:37 +0100 Subject: [PATCH] update --- package.json | 4 ++-- vite.config.ts | 12 ------------ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 7f4d5feb..1a3b243e 100644 --- a/package.json +++ b/package.json @@ -36,8 +36,8 @@ "require": "./dist/index.cjs.js" }, "./index.css": { - "import": "./dist/index.css", - "require": "./dist/index.css" + "import": "./dist/main.css", + "require": "./dist/main.css" }, "./colors.css": { "import": "./dist/colors.css", diff --git a/vite.config.ts b/vite.config.ts index ec804aa7..281cc857 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,7 +2,6 @@ import vue from '@vitejs/plugin-vue'; import { fileURLToPath, URL } from 'node:url'; import dts from 'vite-plugin-dts'; import { defineConfig, type UserConfig } from 'vitest/config'; -import { version } from './package.json'; /** https://vitejs.dev/config/ */ const bambooLibConfig: UserConfig = defineConfig({ @@ -32,19 +31,8 @@ const bambooLibConfig: UserConfig = defineConfig({ }, external: ['vue'], output: { - assetFileNames: (assetInfo) => { - if (assetInfo?.name?.endsWith('.css')) { - if (assetInfo.name === 'main.css') { - return 'index.css'; - } else { - return `${assetInfo.name}`; - } - } - return `${assetInfo.name}`; - }, exports: 'named', globals: { vue: 'Vue' }, - banner: '/* bamboo version ' + version + ' */', }, input: { main: fileURLToPath(new URL('./src/index.ts', import.meta.url)),