This project has moved. For the latest updates, please go here.

import of nested files

Jun 6, 2015 at 10:01 PM
Hello, I have following sass files structure:
 main.scss
|
+--my-variables
    |
    +--- _my-variables.scss
    +--- _colors.scss
main.scss:
@import "my-variables/my-variables";
_my-variables.scss:
@import "colors";
But I have not access to variables in _colors.scss file. When I put my _colors.scss file to main directory and change in main.scss to @import "variables" , the site works correctly.

my code:
var cssTransformer = new BundleTransformer.Core.Transformers.StyleTransformer();
            CustomStyleBundle companyBundle = new CustomStyleBundle("~/Content/css/company");
            companyBundle.Include("~/Content/sass/style.scss");
            companyBundle.Orderer = nullOrderer;
            
              companyBundle.Transforms.Add(cssTransformer);
              BundleTable.Bundles.Add(companyBundle);
When I don;'t use cssTransformer variable, I have not error but the code is not corrected. What can be here reason? '-' character in my-variables directory name?
Coordinator
Jun 7, 2015 at 11:56 AM
Hello, Dagna!

I recommend you to read about CustomStyleBundle and CustomScriptBundle classes in the “Examples of usage” section of documentation.