This project has moved and is read-only. For the latest updates, please go here.

import of nested files

Jun 6, 2015 at 11:01 PM
Hello, I have following sass files structure:
    +--- _my-variables.scss
    +--- _colors.scss
@import "my-variables/my-variables";
@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.Orderer = nullOrderer;
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?
Jun 7, 2015 at 12:56 PM
Hello, Dagna!

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