-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSBuild Target #35
Comments
It's not impossible, but you will either need 1 central scss file that combines all scss files or an xml defining which goes where, having that would defeat the purpose of having bundling and minification package of MVC ( i'm guessing you are using that ) where you specify what goes where. Also, the startup cost is mainly during development [1] and having to rebuild the whole project each time after scss change is made is a chore (at least for me) and i prefer it run time. [1] if you are in |
With MSBuild, you can take advantage of MSBuild inputs and outputs and only recompile when something has actually changed and only recompile that which has changed. Sass imports might throw a wrench in that, but that could be worked around. If some how enabled a "Compile On Save", that might also work to allow easy updating while developing in a TypeScript-esque way.
With the precompilation step, you still could do bundling and minification, you'd just be doing it against CSS rather then less. And the css results would just be dropped next to their sass counterparts. You could also add a project property where you can tell the MSBuild task to compile them all into a single file, or a file property that says that a file should be part of a set and get compiled into a certain file. You could also abuse I agree, however that this would not be the most simple task. Would require just below TypeScript levels of integration. |
This is a pretty awesome idea. I think we can certainly provide couple of extension packages on top of LibSass.NET, such as:
To keep things simple, bundling is a separate project. Consumer of Sass can always create a glue.scss or main.scss which includes everything to compose the project (e.g. Importers: new feature called Minification: we now have working |
Random idea, but would it be possible to create an MSBuild target to allow compiling the Sass before hand? I've put something like this together for my work when using Less. Reduces the startup hit for websites, and allows build time verification of Sass.
The text was updated successfully, but these errors were encountered: