Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to exclude/ignore certain CSS-files from the Sass Processor?

Tags:

css

sass

I'm using SASS/SCSS. I have some .css-files which I want to be ignored by the RubySassProcessor. Does anybody know how to exclude them?

like image 825
kea Avatar asked May 16 '13 10:05

kea


People also ask

How to include the default CSS that comes with the component?

To include the default css that comes with the component I simply add and the css is bundled correctly. But, I do not want to use the default styling, so I've added my own css file. To import this one I use:

What does ignore style C in CSS mean?

In terms of programmatically speaking, I want to do the following: if (div) { ignore style.css use div.css without needing to redeclare all styles } Hi, The C in CSS stands for ‘cascading’ which means that styles can cascade from multiple sources in order to style the document.

How do I exclude specific files from deployment?

If you know which files you want to exclude ahead of time, and the exclusion applies to all destination environments, you can simply set the Build Action of each file to None. To exclude specific files from deployment. In the Solution Explorer window, right-click the file, and then click Properties.

How to exclude files from a Web package in Visual Studio?

Excluding Files from a Web Package 1 Open your solution in Visual Studio 2010. 2 In the Solution Explorer window, right-click your web application project node (for example, ContactManager.Mvc ), point to Add, and then click New Item. 3 In the Add New Item dialog box, select the XML File template. See More....


1 Answers

If you add an underscore in front of the filename it will be ignored, but can then be added as a partial using @import.

  1. Rename filename.scss to _filename.scss
  2. Optional: Add the following to a file you want to include it in:

    @import "filename"

This will also effectively ignore the css file, since it will not be compiling changes from the scss file to the css file.

A deeper explanation can be seen here: Webstorm 6 - How to make the scss file watcher ignore files

And here in the Partials section: http://sass-lang.com/documentation/file.SASS_REFERENCE.html

like image 75
zeusstl Avatar answered Sep 24 '22 08:09

zeusstl