the-island/node-sass

libsass Assetic filter

0.5 2016-01-29 04:09 UTC

This package is not auto-updated.

Last update: 2024-03-16 15:02:57 UTC


README

libsass Assetic filter

Installation

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-style in node-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