Skip to content

umi@1.0.4

Compare
Choose a tag to compare
@sorrycc sorrycc released this 06 Mar 08:27
· 7018 commits to master since this release

More on #161.

  • feat: specify context.path when generating HTML content
  • feat: support global.js
  • feat: support custom hd solution with hd.js
  • fix: exact property incorrent when using _routes.json, Close #160
  • feat: don't remove attribute quotes for HTML files
  • feat(af-webpack): support config urlLoaderExcludes

  • 生成 HTML 内容时额外传入 context.path 给模板
  • 约定 src/global.(j|t)sx? 为 JS 入口文件,对应 CSS 的 global.(css|less),你可以在这里引用 polyfill 或其他文件
  • 约定 src/hd.js 为自定义的 hd 方案文件(注意:要先开 hd 配置)
  • 修复 _routes.json 里声明非 exact 时不生效的问题,Close #160
  • 压缩 HTML 文件时不移除引号(内部流程上的一个工具不支持。。)
  • 支持在 .webpackrc 里配置 urlLoaderExcludes