Closed loominade closed 9 years ago
I'd like to add a variable to the job. like the viewmode in this one
viewmode
grunt.initConfig({ sass: { wide: { options: { style: 'expanded', variables: { viewmode: 'wide', } }, files: { 'wide.css': 'main.sass' } } narrow: { options: { style: 'expanded', variables: { viewmode: 'narrow', } }, files: { 'narrow.css': 'main.sass' } } } });
So i can work with the $viewmodevariable in sass:
$viewmode
body:before @if $viewmode == 'wide' content: 'you are in the wide viewmode' @if $viewmode == 'narrow' content: 'you are in the narrow viewmode'
can I do this somehow?
You can easily prepend something using another task. Eg. https://github.com/sindresorhus/grunt-header
Any feature requests will have to be implemented in Sass first. This task only wraps it.
I'd like to add a variable to the job. like the
viewmode
in this oneSo i can work with the
$viewmode
variable in sass:can I do this somehow?