chore: cleanup unused files and update gitignore
- Remove MONETIZATION.md and README.md - Add dist/ to gitignore Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
ac04d7f346
commit
58fd9c0a55
9 changed files with 35 additions and 194 deletions
|
|
@ -4,11 +4,21 @@ import UnoCSS from 'unocss/vite'
|
|||
import { resolve } from 'path'
|
||||
|
||||
export default defineConfig(({ command }) => ({
|
||||
plugins: [UnoCSS(), ...(command === 'build' ? [react()] : [])],
|
||||
plugins: [
|
||||
// Only use UnoCSS plugin in dev mode for HMR
|
||||
...(command === 'serve' ? [UnoCSS()] : []),
|
||||
...(command === 'build' ? [react()] : []),
|
||||
],
|
||||
base: command === 'serve' ? '/@owner-tools' : '/',
|
||||
esbuild: {
|
||||
jsxInject: `import React from 'react'`
|
||||
},
|
||||
resolve: {
|
||||
alias: command === 'serve' ? {
|
||||
// In dev mode, alias the generated file to virtual:uno.css
|
||||
'./uno-generated.css': 'virtual:uno.css',
|
||||
} : {},
|
||||
},
|
||||
|
||||
...(command === 'serve' && {
|
||||
server: {
|
||||
|
|
@ -36,7 +46,7 @@ export default defineConfig(({ command }) => ({
|
|||
formats: ['iife'],
|
||||
fileName: () => 'owner-tools.js'
|
||||
},
|
||||
outDir: '../../internal/build/assets/js',
|
||||
emptyOutDir: false
|
||||
outDir: '../../internal/tenant/assets/js',
|
||||
emptyOutDir: false,
|
||||
}
|
||||
}))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue