libsass Assetic filter
Install node-sass via npm (not covered)
Add to composer.json:
"the-island/node-sass": "*",
Add to AppKernel.php:
new TheIsland\NodeSassBundle\TheIslandNodeSassBundle()
Add toconfig.yml:
the_island_node_sass:
bin: /usr/local/bin/node-sass
style: "nested"
debug: false
load_paths: [%kernel.root_dir%/../bower_components]
apply_to: "^(?<!_).+\.scss$"
- bin - path to a node-sass executable
- style - see
--output-styleinnode-sass -h - debug - turns on
--source-comments - load_paths - adds paths to
--include-path - node - path to your local node (might help if node is not on your path)
- source_map - boolean to set the source_map to true or false