gruntjs / grunt-contrib-sass

Compile Sass to CSS.
http://gruntjs.com/
MIT License
848 stars 141 forks source link

Variable as a key for path. #217

Closed artfaal closed 8 years ago

artfaal commented 8 years ago

Hi! Weird behavior.

var sourseScssFolder = 'src/scss/*.scss';
var destCssFile = 'src/packed.css';
sass: {
            dist: {
                options: {
                    style: 'nested'
                },
                files: {
                    // Key don't wanna load from variable
                    destCssFile: sourseScssFolder,
                }
            }
        },

After this compiler create file "dest File", instead read from var. How fix this?

sindresorhus commented 8 years ago

Support questions are better asked on StackOverflow: http://stackoverflow.com/questions/tagged/gruntjs Paste in the link to the question here so others can follow ;)

artfaal commented 8 years ago

http://stackoverflow.com/questions/34510954/variable-as-a-key-for-path-in-gruntjs