This plugin extracts & inlines critical-path (above-the-fold) CSS from HTML after saber generate, for example if you're using Tailwind CSS or other CSS frameworks you can use this plugin to remove unused CSS.
yarn add saber-plugin-critical --devIn your saber-config.yml (or .js, .toml etc):
plugins:
- resolve: saber-plugin-critical- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
saber-plugin-critical © EGOIST, Released under the MIT License.
Authored and maintained by EGOIST with help from contributors (list).
Website · GitHub @EGOIST · Twitter @_egoistlily