c# .net BundleConfig adding custom css dir/files -
i running vs2017. in simple project have standard content dir. added index.css file in there hold custom css. setup bundleconfig as:
... bundles.add(new stylebundle("~/content/local").include( "~/content/index.css" ) ); ... i modified _layout.cshtml file with:
... @styles.render("~/content/local") ... and fine. realized have @ least 1 more custom css file added new dir named local under content; moved index.css file in there , adjusted bundleconfig as:
... bundles.add(new stylebundle("~/content/local").include( "~/content/local/index.css" ) ); ... and web browser not load css. have since renamed folder localcss , have modified bundleconfig , layout reflect change.
... bundles.add(new stylebundle("~/content/localcss").include( "~/content/index.css" ) ); ... and things work again.
this odd me because did same basic thing local javascript files , works fine as:
bundles.add(new scriptbundle("~/bundles/local").include( "~/scripts/local/index.js", "~/scripts/local/popups.js" ) ); what missing?
Comments
Post a Comment