chore: prepare for npm publishing as @gkucmierz/bitcoin-logo

This commit is contained in:
2026-03-03 09:24:00 +00:00
parent 2b6e9077c7
commit 5e4fa25fc4
6 changed files with 131 additions and 9 deletions

View File

@@ -1,8 +1,24 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
export default defineConfig({
plugins: [vue()],
build: {
lib: {
entry: resolve(__dirname, 'src/index.js'),
name: 'BitcoinLogo',
fileName: 'bitcoin-logo',
},
rollupOptions: {
external: ['vue'],
output: {
globals: {
vue: 'Vue',
},
},
},
},
server: {
host: true,
allowedHosts: true,