1.4.0 • Published 2 years ago
@acidgreenau/postcss-in-js v1.4.0
PostCSS in JS/TS
This Webpack loader is very simple it aims to:
- Replace PostCSS from stylesheets inside of JavaScript
- To the output of the PostCSS compiler
To achieve the above functionality, we need to flag where the PostCSS starts and ends. To do so we need to:
- pass a comment at the start:
//*__POSTCSS__*//
- Pass a comment at the end:
//!*__POSTCSS__*//
- With the only differences being a bang! at the start of the comment.
The loader should be passed after all other loaders required. 1. If you have JavaScript or Typescript 2. Pass it after the ts-loader, or babel-loader.