Giter VIP home page Giter VIP logo

sculpin-scss-bundle's Introduction

Sculpin Scss Bundle

Software License

Sculpin bundle that integrates the leafo/scssphp SCSS processor.

Each *.scss or *.sass file is parsed to CSS. When the parser generates any CSS output the file is renamed to *.css in place. Otherwise, the file will be ignored.

Installation

  • Add the following to your sculpin.json file:
{
    "require": {
        "devworks/sculpin-scss-bundle": "~0.1"
    }
}
  • Run sculpin update.
  • Add the bundle to your sculpin kernel app/SculpinKernel.php:
<?php
class SculpinKernel extends \Sculpin\Bundle\SculpinBundle\HttpKernel\AbstractKernel
{
    /**
     * {@inheritDoc}
     */
    protected function getAdditionalSculpinBundles()
    {
        return array(
            'DevWorks\Sculpin\Bundle\ScssBundle\SculpinScssBundle'
        );
    }
}

Configuration

# app/config/sculpin_kernel.yml
sculpin_scss:

    # The formatter to use
    formatter_class: 'Leafo\\ScssPhp\\Formatter\\Compressed'
    extensions: ["scss"]
    files: ["assets/css/style.scss"]

formatter_class

This setting controls the formatter used for the css output. By default the compressed formatter is used. This can be changed to the fully qualified class name of one of the other formatters provided by scssphp to change the css output format.

extensions/files

By default the extensions whitelist is used. If the files whitelist is set it takes precedence and all other SCSS files are not converted.

To ignore non matching SCSS files the sculping ignore configuration can be used:

# app/config/sculpin_kernel.yml
sculpin:
    ignore: ["assets/css/_imports/"]

License

The MIT License (MIT). Please see License File for more information.

sculpin-scss-bundle's People

Contributors

ikappas avatar

Watchers

 avatar  avatar  avatar

Forkers

turanct

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.