New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
可配置额外需要做 babel 转换处理的文件规则 #40
Comments
如果没有 webpack.config.js配置文件,动态加载route还不能对 chunkFilename配置吗?比如 '[name].[hash].js' |
动态加载的文件为何要进行命名? |
我是说按需加载方式生成在dist的文件,加上 [hash]后可以自动部署在生产环境,不用手工加其他防止缓存的参数 |
这个现在有了吗?我在 .roadhog.mock.js 中引入了 mockjs,估计要这个才能修复。 |
这个和 babel 转换无关吧。 |
好象之前看你写到过 babel 默认只对 ./src 目录下的文件做处理。我在 .roadhog.mock.js 文件中包含了其他的带有 mockjs 数据的文件,因为 .roadhog.mock.js 不在 ./src 目录下,所以这一系列的文件都必须用老的 JS 的语法。目前来看问题不是很大,能绕过去,比较困扰的是有一个浏览器的 localStorage 不能直接用了。 |
|
等你下一个版本发布了我再试试吧。 |
roadhog 实现:
{
test: /\.(js|jsx)$/,
include: %文件夹%,
loader: 'babel',
}, |
@sorrycc |
我用dva新建了一个项目,修改目录结构为: 然后将
发现将 index.js 和 index.css 编译成了 html 的内容?如图: dva-cli 版本 0.7.8,roadhog 版本 0.5.4 |
entry 没配对。 |
entry 要配成 |
roadhog 升级下,0.5.4 估计还没这个配置项。 |
|
ant-design/ant-design#4418, #35
The text was updated successfully, but these errors were encountered: