TickSimple v1.0.0 — Dead-simple time tracker for freelancers. One-tap timer, PDF reports, invoice generation, Chrome extension MV3.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
import { defineConfig } from 'vite'
|
||||
|
||||
export default defineConfig({
|
||||
base: './',
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
emptyOutDir: true,
|
||||
rollupOptions: {
|
||||
input: {
|
||||
popup: 'src/popup/popup.html',
|
||||
options: 'src/options/options.html',
|
||||
report: 'src/report/report.html',
|
||||
invoice: 'src/invoice/invoice.html',
|
||||
background: 'src/background.ts',
|
||||
},
|
||||
output: {
|
||||
entryFileNames: '[name].js',
|
||||
chunkFileNames: '[name].js',
|
||||
assetFileNames: (assetInfo) => {
|
||||
const info = assetInfo.name || ''
|
||||
if (info.endsWith('.html')) return '[name][extname]'
|
||||
if (info.endsWith('.css')) return '[name][extname]'
|
||||
return 'assets/[name][extname]'
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
publicDir: 'public',
|
||||
})
|
||||
Reference in New Issue
Block a user