0.0.2 • Published 4 years ago

scully-plugin-optimize-css v0.0.2

Weekly downloads
13
License
-
Repository
github
Last release
4 years ago

Scully Plugin Optimize CSS

This plugin optimizes the CSS in the following way:

  • Takes only the CSS required to render the static page and puts it in an inline style element
  • Defers any existing application CSS files using the google lighthouse recommended way.
  • I also add a noscript alternative for when there is no javascript.

installing:

npm install scully-plugin-optimize-css --save-dev
const { OptimizeCSSPlugin } = required('scully-plugin-optimize-css');

exports.config = {
    projectRoot: './src/app',
    defaultPostRenderers: [
        OptimizeCSSPlugin
    ]
    routes: [
        ...
    ],
    
}
0.0.2

4 years ago

0.0.1

4 years ago