c# - Bundling css even if using @import -


i'm developing application in c# , asp.net mvc. have various css files 1 called base.css import other css files using @import rule as:

@import url('base.css'); 

then bundle css files minimise them as:

bundles.add(new stylebundle("~/content/css").include(                   "~/content/bootstrap.css",                   "~/content/site.css"));                   ... more css files 

so question have bundle base.css if i'm importing different css? because if don't bunble styling doesn't work required.

because mvc bundler creates entirely new file in potentially different location (see full path in bundle name), location of import statements becomes inaccurate.

what can instead create separate css file (or static declaration on _layout page includes import statements), , include outside of bundle.


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -