パッケージの詳細

@brikcss/stakcss-bundler-sass

brikcss20.2.0

Stakcss bundler which compiles sass.

brikcss, stakcss, bundler, stakcss bundler

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.