@brikcss/stakcss-bundler-sass

Stakcss bundler which compiles sass.

Usage no npm install needed!

<script type="module">
  import brikcssStakcssBundlerSass from 'https://cdn.skypack.dev/@brikcss/stakcss-bundler-sass';
</script>

README

Stakcss SASS Bundler

Bundler for Stakcss that compiles SASS.

NPM version NPM downloads per month Travis branch NPM version Coverage Status Commitizen friendly semantic release code style: prettier

Install

npm install @brikcss/stakcss @brikcss/stakcss-bundler-sass --save-dev

Usage

Add the bundler to Stakcss and configure like any other bundler:

  • Node:

    stak({
        bundlers: ['@brikcss/stakcss-bundler-sass']
    });
    

    or with options and data:

    stak({
        bundlers: [{
            run: '@brikcss/stakcss-bundler-sass',
            options: {}
        }]
    });
    
  • CLI:

    stak ... --bundlers=@brikcss/stakcss-bundler-sass
    

    or with bundlers inside a config file:

    stak --config=<path to config>
    

Bundler Configuration

Note: From a CLI, you must use a config file (--config=<path>) to configure the bundler.

  • bundler.options {Object} Options passed to SASS. The default options are:

    {
        data: '',
        indentType: 'tab',
        indentWidth: 1,
        outputStyle: config.isProd ? 'compressed' : 'expanded',
        outFile: config.output,
        precision: 5,
        sourceComments: !config.isProd,
        sourceMap: !config.isProd
    }
    

See Stakcss for more on using Stakcss bundlers.