entries

  • Multi-page entry configuration, equivalent to a collection of html
  • Type: {[entryFilename: string]: HtmlType}
  • For HtmlType configuration, refer to
emp-config.js
import {defineConfig} from '@empjs/cli'
export default defineConfig(store => {
  return {
    entries: {
      'info.ts': {
        title: 'Info Page',
      },
    //基于`src`的文件路径
      'work/index.ts': {
        title: 'work Page',
         //基于项目根目录的文件路径
        template: 'src/work/index.html',
      },
    },
  }
})