@peterek/sass-config-webpack-plugin

1.0.6 • Public • Published

sass-config-webpack-plugin

Preset for Dart Sass webpack configuration

Basically does the same as ⚙️ scss-config-webpack-plugin but uses Dart Sass as primary compiler.

Installation

npm i -D @peterek/sass-config-webpack-plugin

Application

const SassWebpackPlugin = require('@peterek/sass-config-webpack-plugin')

module.exports = {
    plugins: [
        new SassWebpackPlugin()
    ]
}

Options

implementation

The special implementation option determines which implementation of Sass to use.

By default the loader resolves into using Dart Sass. If you prefer to use different package you can specify it with following setup:

module.exports = {
    plugins: [
        new SassWebpackPlugin({
            implementation: require('node-sass'),
        })
    ]
}

Package Sidebar

Install

npm i @peterek/sass-config-webpack-plugin

Weekly Downloads

3

Version

1.0.6

License

ISC

Unpacked Size

11.4 kB

Total Files

10

Last publish

Collaborators

  • peterek