gollumsf / libsass-bundle
Add libsabb filter for AsseticBundle
Installs: 478
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 5
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.2
- igosuki/compass-mixins: >=1.0
- sass/node-sass: >=3.8
- symfony/framework-bundle: >=2.3
README
Add libsabb filter for AsseticBundle into Symfony2
##For composer :
{ "require" : { "gollumsf/libsass-bundle" : "1.0.0" }, "scripts" : { "post-update-cmd" : [ "GollumSF\\LibSassBundle\\DistributionBundle\\Composer\\ScriptHandler::submoduleUpdate" ] } }
##Register the bundle with your kernel:
// in AppKernel::registerBundles() $bundles = array( // ... new GollumSF\LibSassBundle\GollumSFLibSassBundle(), // ... );
##Configuration
assetic: node: bin: ~ # (optional) default: /usr/bin/node nodesass: bin: ~ # (optional) default: "%kernel.root_dir%/../vendor/sass/node-sass/bin/node-sass" filters: nodesass: resource: '%kernel.root_dir%/../vendor/gollumsf/libsass-bundle/GollumSF/LibSassBundle/Resources/config/nodesass.xml' apply_to: "\.scss$" # (optional) style: ~ # (optional) default: expanded images_dir: ~ # (optional) default: images fonts_dir: ~ # (optional) default: fonts http_path: ~ # (optional) load_paths: [] # (optional) parameters: assetic.nodesass.compiler.usenodeserver: ~ # (optional) default: false Enabled generate assets routes for node compiler server (Only dor DEV) assetic.nodesass.compiler.host: 127.0.0.1 # (optional) default: "127.0.0.1" Host for node compiler server assetic.nodesass.compiler.https: "none" # (optional) default: "none" must be "none", "detect", "full" for http/https route generated assetic.nodesass.compiler.port: 7979 # (optional) default: 7979 HTTP port for compiler server assetic.nodesass.compiler.portHttps: 8989 # (optional) default: 8989 HTTPS port for compiler server
##Command
Launch compiler dev server if
php app/console nodesass:compiler