gnoll-sass

0.5.0-3 • Public • Published

gnoll-sass

Adds support for CSS and SCSS for Gnoll.

Install

npm i gnoll-sass

Usage

You need to create webpack.config.js file in the your project and add extend base config with scss plugin:

//webpack.config.js
const merge = require('webpack-merge')
const baseConfig = require('gnoll/config/webpack')
const sass = require('gnoll-sass')
 
module.exports = merge(baseConfig, sass({ cssModules: true }))

Configuration

CSS modules

You can disable or enable CSS-modules with option cssModules.

Postcss

Postcss config includes following plugins:

If you want to change config, you can create postcss.config.js file in the your project and extend the default config:

// postcss.config.js
const baseConfig = require('gnoll-sass/config/postcss')
 
module.exports = {
    ...baseConfig,
    plugins: [
        ...baseConfig.plugins,
        'some-plugin'
    ]
}

License

Public domain, see the LICENCE file.

/gnoll-sass/

    Package Sidebar

    Install

    npm i gnoll-sass

    Weekly Downloads

    3

    Version

    0.5.0-3

    License

    Unlicense

    Unpacked Size

    4.47 kB

    Total Files

    4

    Last publish

    Collaborators

    • sunflowerdeath