phonegap-template-vue-f7-blank icon indicating copy to clipboard operation
phonegap-template-vue-f7-blank copied to clipboard

Support css url(/static/img/stuff.png)

Open cepm-nate opened this issue 6 years ago • 0 comments

In a recent project, I had a CSS rule (In the

This worked fine in DEV mode, but building and deploying to android (or double-clicking the www/index.html file) resulted in the image resolving to a 404. Changing the css rule on-the-fly to remove the leading slash (url(static/image.png) made the image load. But removing the slash in the SOURCE make the build fail (MiniCssExtractPlugin threw "unable to resolve" errors).

My workaround is to REMOVE that rule from the

I'm reporting this here, as I think people using this template would expect url() to work with /static/ resources in their

Thanks for all your hard work!

cepm-nate avatar Mar 23 '19 15:03 cepm-nate