postcss-extract
v1.1.1
Published
PostCSS plugin to extract css inside @at-rules into separate files
Downloads
414
Maintainers
Readme
PostCSS Extract
PostCSS plugin to extract css inside @at-rules into separate files.
.foo {
height: 40px;
@extract-alias {
text-decoration: underline;
}
}
styles.css
.foo {
height: 40px;
}
extracted.css
.foo {
text-decoration: underline;
}
Usage
postcss([ require('postcss-extract')({
extract: {
'extract-alias': path.join(__dirname, './relative/path/to/file.css')
}
}) ])
See PostCSS docs for examples for your environment.
License
MIT © Maxim Samoilov