This package has been deprecated

Author message:

Not maintained anymore.

gulp-postcss-modules

0.2.0 • Public • Published
Gulp Logo

Gulp PostCSS Modules
Sponsored by Version Downloads Build Status Dependencies

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.

Links

Installation

Should be installed locally in your project source code:

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

Usage with Gulp

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

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

Copyright

Sebastian Software GmbH Logo

Copyright 2016
Sebastian Software GmbH

Readme

Keywords

Package Sidebar

Install

npm i gulp-postcss-modules

Weekly Downloads

3

Version

0.2.0

License

Apache-2.0

Last publish

Collaborators

  • swernerx