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
No description provided.
The text was updated successfully, but these errors were encountered:
你要让webpack通过你的路径找到图片;我图片放在在src目录assets/里,webpack注意url-loader的name和publicPath,这关系到生产环境里图片路径查找,相关代码如下: { test: /.(jpe?g|png|gif|bmp|ico)(?.*)?$/i, loader: "url-loader?limit=8048&name=assets/url-img/[name].[hash:5].[ext]&publicPath=../../", }, .login-box { background: url("../../assets/url-img/login/login_bg.png") no-repeat; text-align: center; height: 100%; } 完整项目可参考 https://github.com/youka2012/react-antd-webpack-ie8 这个项目初期也是基于HeavenSky的项目构建的
Sorry, something went wrong.
另外,注意url-loader版本,我是换到0.5.6才舒服起来。。。
不好意思,工作巨忙,一直没看,没想到还是有人看的。 less-loader 我理解是需要配置下的option配置,你看看是否需要加上。
relativeUrls: false, // 是否开启相对路径 javascriptEnabled: true, // 不设置似乎会报错
哎,改用MAC就不知道咋维护了,如果有问题,建议把所有依赖锁版本,就是把这个三角^去掉。
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: