Package Exports
- postcss-sass-extend
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (postcss-sass-extend) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
PostCSS Sass Extend 

PostCSS Sass Extend is a PostCSS plugin that allows you to use @extend and placeholder classes like you do in Sass.
/* before */
%placeholder {
color: blue;
}
%unused-placeholder {
color: yellow;
}
.a {
@extend %placeholder;
background-color: black;
}
.b {
color: red;
}
.c {
background-color: white;
@extend %placeholder;
}
.d {
color: green;
}
/* after */
.a, .c {
color: blue;
}
.a {
background-color: black;
}
.b {
color: red;
}
.c {
background-color: white;
}
.d {
color: green;
}
Usage
You just need to follow these two steps to use PostCSS Sass Extend:
- Add PostCSS to your build tool.
- Add PostCSS Sass Extend as a PostCSS process.
npm install postcss-sass-extend --save-dev
Node
postcss([ require('postcss-sass-extend')({ /* options */ }) ])
Grunt
Add [Grunt PostCSS] to your build tool:
npm install postcss-sass-extend --save-dev
Enable PostCSS Sass Extend within your Gruntfile:
grunt.loadNpmTasks('grunt-postcss');
grunt.initConfig({
postcss: {
options: {
processors: [
require('postcss-sass-extend')({ /* options */ })
]
},
dist: {
src: 'css/*.css'
}
}
});