Minor: Published bundle reference error
See original GitHub issueOnly a minor thing, but noticed when I was setting up CI - If you publish the SimpleTaskSystem, the default bundles mean that relative urls inside css files will be lost (i.e. flags don’t show up, font-awesome glyphs can’t be found).
This might need to be changed at some point as it’s a limitation with the MS bundler. A workaround is to give the name of the bundle the base directory of the bundle folder:
bundles.Add(new StyleBundle("~/Content/vendorCssBundle")
.Include("~/Content/font-awesome.css" ....)
);
Issue Analytics
- State:
- Created 9 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
ASP.NET MVC 4 Script bundling causes errors upon ...
The minification "works" even if that errors appears. The real solution for this is: Exclude .min and .map files BEFORE you publish.
Read more >Bundle errors when cargo publish fails · Issue #3054
The meta-deta reference docs clearly explain what should be required in the metadata, but multiple minor mistakes are prone to happen sometimes.
Read more >The bundle version, NNN, must be
Since today, I'm getting this message (including the typo) every single time I try to upload a new build of my app to...
Read more >Hunting a bug — A True App Bundle Debugging Story
AndroidManifest.xml:26: error: ERROR getting 'android:label' attribute: attribute value reference does not exist ...
Read more >MSBuild reference for .NET SDK projects
Reference for the MSBuild properties and items that are understood by the .NET SDK.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
have you tried this solution https://github.com/aspnetboilerplate/aspnetboilerplate-samples/pull/80/files ?
Hi, I understand this issue. There is a potential bug with CssRewriteUrlTransform in that it does not take effect if the reference file has .min versions already.
The actual solution is to delete the min files, or to reference them in the bundler instead.
In my case, after I published the project, no rewrite had happened so it could not see where the flags.png file was for the language selector. So no flags are visible on the published version.
I simply changed it to use the minified version and the rewrite worked correctly.
.Include("~/lib/famfamfam-flags/dist/sprite/famfamfam-flags.min.css", new CssRewriteUrlTransform())
But this is an active bug, please reopen
(Using .NET Framework, MVC template)