feat: add boilerplate
This commit is contained in:
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user