npm.io
0.2.2 • Published 8 years ago

gulp-postcss-modules-sealine

Licence
MIT
Version
0.2.2
Deps
8
Size
13 kB
Vulns
6
Weekly
0

A trivial solution for extracting CSS module data from PostCSS files.

Supports CSS module preprocessing for prevention of naming conflicts between components.

Uses a memory cache during runtime to omit regenerating files with probably unchanged content.

Installation

Should be installed locally in your project source code:

npm install gulp-postcss-modules-sealine --save-dev

Usage with Gulp

import postcssModules from "gulp-postcss-modules-sealine"

gulp.task("postcss:modules", function() {
  return gulp.src("src/**/*.scss").
    pipe(postcssModules()).
    pipe(gulp.dest("."))
})

This generates the extract/processed .scss.json files to the same folder as the source .scss file.

Copyright 2016
[Sealine][sponsor]