Search Docs
After startup, automatically find the entry files in the pages directory
pages
boolean
{path:'pages'}
false
import {defineConfig} from '@empjs/cli' export default defineConfig(store => { return { autoPages:true } })
src/pages
html-template
html
entries
import {defineConfig} from '@empjs/cli' import pluginReact from '@empjs/plugin-react' export default defineConfig(store => { return { //开启 autoPages autoPages: true, plugins: [pluginReact()], // 全局设置 html 配置 html: { title: 'EMP v3 Auto Pages', }, // 局部设置存在页面的配置 entries: { 'work/index.ts': { title: 'auto page work', }, }, } })