1.0.6 • Published 5 years ago

@peterek/sass-config-webpack-plugin v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

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'),
        })
    ]
}