2.0.0 • Published 7 years ago
styler-react v2.0.0
Extract only styles which are used in react component.
Usage
Installation
npm i -g styler-react
Usage
styler <js> <css> <option>
Usage example
styler src/component/Navigation.js src/component/bin.css -o new.css
Options
-o, --output Choose where to save result [string]
-i, --info Logs out infos [boolean]
-m, --minify Minify result [boolean]
-h, --html Forcely add html and body tag [boolean]
--combine, --compose Combine results (default) [boolean]
--foreach, --map Styling each by each and save with each names [boolean]
--shared, --codomain Only extracts shared styles [boolean]
Where this project is going
- To support below as well:
- as webpack plugin as optimizer
- htmls.
- less, sass, etc.
- website online tool