Skip to content

0.4.0 (December 29, 2016)

Compare
Choose a tag to compare
@sorrycc sorrycc released this 29 Dec 04:49
· 302 commits to master since this release

0.4.0 不包含任何不兼容升级,可以放心无缝升级。

详见 Milestone 0.4

  • 支持通过 webpack.config.js(支持 ES6 编写) 编程的方式修改 webpack 配置,但是不推荐,使用时会给予警告 ⚠️⚠️⚠️,见下图 (#36)
  • 支持 .roadhogrc.js(支持 ES6 编写) 的配置方式,用于处理一些 JSON 处理不了的格式问题 (#37)
  • 新增 .roadhogrc 支持 define 配置,对应 webpack 的 DefinePlugin,define 的值会自动做 JSON.stringify 处理 (#8)
  • 新增 .roadhogrc 支持 multipage 配置,表示多页应用,会自动抽取公共部分为 common.jscommon.css (#5)
  • 新增 .roadhogrc 支持 externals 配置,对应 webpack 的 externals (#6)



  • Support config with webpack.config.js by programming, but it's not recommended. ⚠️⚠️⚠️ (#36)
  • Support config with .roadhogrc.js (#37)
  • Support use define in .roadhogrc to config the webpack's DefinePlugin, the value will be transformed by JSON.stringify automatically (#8)
  • Support use multipage config in .roadhogrc, it will extract the common chunks as common.js and common.css (#5)
  • Support use externals in .roadhogrc to configure webpack's externals (#6)