Import and compile SASS files with rollup. It supports sourcemaps and import from node_modules
.
- Compile SASS files with
sass
. - Export dependencies tree to
rollup
. - Support for sourcemaps.
- Extract CSS files.
npm install rollup-plugin-sass-modules --save-dev
import sassModules from 'rollup-plugin-sass-modules'
export default {
plugins: [
sassModules({
include: ['**/*.scss', '**/*.sass'],
exclude: [],
options: { ... }
}),
],
}
minimatch glob pattern (or array) of files to include.
minimatch glob pattern (or array) of files to exclude.
See dart-sass
options.
If outFile
option is provided, the plugin will automatically extract and write the compiled CSS.
Post processor function.