We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
任意环境
webpack.config.js
webpackConfig.module.rules.push({ test: /\.ya?ml$/, use: [ 'yml-loader'] })
import yml from './test.yaml' console.log(yml)
得到的是base64的信息。
正常解析为JSON
得到的是base64的信息。和url-loader 的exclude配置有关系
在webpack.config.js 里面添加
webpackConfig.module.rules.forEach((item) => { if (!item.test && item.exclude) { item.exclude.push(/\.ya?ml$/) } })
The text was updated successfully, but these errors were encountered:
关联
Sorry, something went wrong.
Done, via umi@1.0.4, e.g. https://github.com/umijs/umi-plugin-atpl/blob/master/examples/by-config/.webpackrc.js#L3
fix: cwd APP_ROOT (umijs#80)
f927079
No branches or pull requests
Environment(required) | 环境(必填)
任意环境
What did you do? Please provide steps to re-produce your problem.(请提供复现步骤)
webpack.config.js
里面配置得到的是base64的信息。
What do you expected?(预期的正常效果)
正常解析为JSON
What happen?(发生了何种非正常现象)
得到的是base64的信息。和url-loader 的exclude配置有关系
Workaround
在
webpack.config.js
里面添加The text was updated successfully, but these errors were encountered: