Skip to content

goodvidio/cssrules-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cssrules-loader

A webpack loader for cssrules

Install

npm install --save-dev cssrules-loader

Example

webpack.config.js file

module: {
    rules: [{
        test: /\.scss$/,
        use: [
            {
                loader: 'cssrules-loader'
            },
            {
                loader: 'postcss-loader'
            },
            {
                loader: 'sass-loader'
            }
        ]
    }]
}

index.js

var consumableCssrulesArray = require('style.scss');

consumableCssrulesArray.map(function (rule) {
    console.log(rule);
});

Releases

No releases published

Packages

No packages published