-
Notifications
You must be signed in to change notification settings - Fork 60
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
sass中本地图片的引用问题 #32
Comments
用 url-loader 替代 |
我试了一下,加了rule保证过滤图片,但是url-loader完全无视sass里的图片url,没有转换 |
同有这个问题 wxml中 url-loader可以转成base64,在sass文件就无法转换 换成base64-inline-loader也一样 |
最近再看了下webpack的配置,如果sass文件需要转成base64,需要再引入css-loader,而且小程序是多页面应用,需要再另外引入插件extract-text-webpack-plugin。这样就ok了。 |
@anota 可以贴一下配置吗?ExtractTextPlugin的输出写成固定的wxss文件吗? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
请教一下要如何配置url-loader才能让sass中用url引用图片时能自动处理成base64数据呢?
The text was updated successfully, but these errors were encountered: