-
Notifications
You must be signed in to change notification settings - Fork 0
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
在 css 裡放 url(path/to/image.png) 會被冠上 css 的 public path #1
Comments
Found this: webpack-contrib/css-loader#256 about creating alias in webpack con gif & using |
“Handling static assets” for |
chihaoyo
changed the title
在 Css 裡放 Url(.../xxx.png) 會被冠上 css 的 public path
在 css 裡放 url(path/to/image.png) 會被冠上 css 的 public path
Jul 6, 2017
失敗的例子在這裡:https://ask-vue-webpack.watchout.tw/ 首頁大圖消失了 😢 |
暫時的解決方法:大圖放在跟 |
先close好了 ❤️ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
本來該是
/static/img/xxx.png
會變成
/static/css/static/img/xxx.png
現在的 workaround 是把圖檔 encode 進 url 的檔案限制調大,從 10000 -> 100000
在
webpack.base.conf
檔案裡The text was updated successfully, but these errors were encountered: