You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
293 B
14 lines
293 B
8 months ago
|
import path from 'path'
|
||
|
import { PAGES, ROOT_DIR } from './pagesConfig'
|
||
|
export default {
|
||
|
build: {
|
||
|
rollupOptions: {
|
||
|
// 多页支持
|
||
|
input: PAGES.reduce((map, { name }) => {
|
||
|
map[name] = path.resolve(ROOT_DIR, `${name}.html`)
|
||
|
return map
|
||
|
}, {})
|
||
|
}
|
||
|
}
|
||
|
}
|