dataease-dm/core/core-frontend/config/pages.ts

15 lines
314 B
TypeScript
Raw Normal View History

2023-10-23 22:00:14 +08:00
import path from 'path'
import { PAGES, ROOT_DIR } from './pagesConfig'
export default {
build: {
sourcemap: true,
rollupOptions: {
// 多页支持
input: PAGES.reduce((map, { name }) => {
map[name] = path.resolve(ROOT_DIR, `${name}.html`)
return map
}, {})
}
}
}