feat: add boilerplate

This commit is contained in:
doprz
2024-10-22 22:51:03 -05:00
parent 643ea13207
commit 910c75a730
6 changed files with 105 additions and 0 deletions

View File

@@ -142,6 +142,7 @@ export default defineConfig({
renameFile('src/pages/options/index.html', 'options.html'),
renameFile('src/pages/calendar/index.html', 'calendar.html'),
renameFile('src/pages/report/index.html', 'report.html'),
renameFile('src/pages/map/index.html', 'map.html'),
vitePluginRunCommandOnDemand({
afterServerStart: 'pnpm gulp forceDisableUseDynamicUrl',
closeBundle: 'pnpm gulp forceDisableUseDynamicUrl',
@@ -181,6 +182,10 @@ export default defineConfig({
target: 'http://localhost:5173',
rewrite: path => path.replace('report', 'src/pages/report/index'),
},
'/map.html': {
target: 'http://localhost:5173',
rewrite: path => path.replace('map', 'src/pages/map/index'),
},
},
},
build: {
@@ -194,6 +199,7 @@ export default defineConfig({
calendar: 'src/pages/calendar/index.html',
options: 'src/pages/options/index.html',
report: 'src/pages/report/index.html',
map: 'src/pages/map/index.html',
},
output: {
chunkFileNames: `assets/[name]-[hash].js`,