scully-plugin-optimize-css
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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: [
        ...
    ],
    
}

Readme

Keywords

none

Package Sidebar

Install

npm i scully-plugin-optimize-css

Weekly Downloads

0

Version

0.0.2

License

none

Unpacked Size

130 kB

Total Files

23

Last publish

Collaborators

  • ewantavener