Nice Paintings, Mondrian

    sass-scope-loader

    1.0.0 • Public • Published

    sass-scope-loader

    Build Status npm npm

    Sass loader to scope styles inside selector

    This plugin scopes all your styles inside a configurable selector:

    //Before sass-scope-loader 
    .input {
      //... 
    }
     
    //After sass-scope-loader width options.selector ".my-plugin" 
    .my-plugin .input {
      //... 
    }

    Installation

    npm install --save sass-scope-loader

    Usage

    /* webpack.config.js */
    module.exports = {
      module: {
        rules: [
          {
            test: /\.scss$/,
            use: {
              loader: 'sass-scope-loader',
              options: {
                selector: '.SCOPESELECTOR',
              },
            },
          },
        ],
      },
    }

    License

    The MIT License Copyright (c) Carsten Jacobsen

    Install

    npm i sass-scope-loader

    DownloadsWeekly Downloads

    3

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.93 kB

    Total Files

    5

    Last publish

    Collaborators

    • crsten