sass / libsass-net

A lightweight wrapper around libsass
MIT License
94 stars 35 forks source link

How to use with Bundle Transformer? #4

Closed villanus closed 9 years ago

villanus commented 9 years ago

I have a test file but its not comping.... see four.scss when i view source its still not compiled

//Global CSS Scripts
bundles.Add(new StyleBundle("~/x/turbo/global.css", (@AppState["CDN"] + "/x/" + AppState["siteVersion"].ToString() + "/turbo/global.css"))
    .Include(
    "~/x/s/g/css/one.css",
    "~/x/s/g/css/two.css",
    "~/x/s/g/css/three.css",
    "~/x/s/g/css/four.scss"
    )
);
darrenkopp commented 9 years ago

You need to use SassBundle, which knows how to do the Sass stuff. Give that a try and let me know if you run into a problem mixing css and scss, but i'm pretty sure that should work as expected.

villanus commented 9 years ago

can i install via nuget?

darrenkopp commented 9 years ago

yes: https://www.nuget.org/packages?q=libsassnet