目录结构
node_modules
public
iconfront
font_148784_r2qo40wrmaolayvi.eot
..............好几个资源文件就不写了
.roadhogrc文件更改就可以生效了,但是我知道babel这么一改就是去了一部分编译的作用了
{ "entry": "src/index.js", "theme": { "@icon-url": "'/iconfront/font_148784_r2qo40wrmaolayvi'" }, "env": { "development": { "extraBabelPlugins": [ "dva-hmr", "transform-runtime", ["import", { "libraryName": "antd", "libraryDirectory": "es", "style": true }] ] }, "production": { "extraBabelPlugins": [ "transform-runtime", ["import", { "libraryName": "antd", "libraryDirectory": "es", "style": true }] ] } } }
加了theme,改了下面的style为true