Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mrksbnc committed Nov 19, 2023
1 parent 8536ba6 commit d50c9ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 0 additions & 12 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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)),
Expand Down

0 comments on commit d50c9ae

Please sign in to comment.