@anejs/anne-load-config
TypeScript icon, indicating that this package has built-in type declarations

2.2.0 • Public • Published

anne-load-config

@anejs/anne=load-config for anejs

支持

模板路径

可以使用 es6 写配置文件

export default {
  // 如果src 等于 cwd static 等于 222 这里会编译成 cwd/dist/222/haha 
  publicPath: '{{src}}/dist/{{static}}/haha'
}

动态路径处理

自定处理 动态路径为 多页配置 使用默认的 template 和 file template 默认值为 {{src}}/index.tpl

export default {
  pages: '{{src}}/views/**/*js'
}

入口文件规划

单文件入口

  • 配置 entry 入口
  • 自动读取 shell 下入口
  • 自动配置

多文件入口 自动路由加载

Readme

Keywords

Package Sidebar

Install

npm i @anejs/anne-load-config

Weekly Downloads

1

Version

2.2.0

License

ISC

Unpacked Size

47.9 kB

Total Files

32

Last publish

Collaborators

  • rrc-fe
  • xierenhong