Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Implement Critical Path for CSS #23

Open
JeremieLitzler opened this issue Mar 8, 2018 · 0 comments
Open

Implement Critical Path for CSS #23

JeremieLitzler opened this issue Mar 8, 2018 · 0 comments

Comments

@JeremieLitzler
Copy link
Owner

JeremieLitzler commented Mar 8, 2018

NPM package: npm install critical --save-dev

In the gulp file:

var critical = require('critical');

gulp.task('critical', ['build'], function (cb) {
    critical.generate({
        inline: true,
        base: 'dist/',
        src: 'index.html',
        dest: 'dist/index-critical.html',
        minify: true,
        width: 320,
        height: 480
    });
});

Source 1
Source 2a and Source 2b

WebDevJL pushed a commit that referenced this issue Mar 8, 2018
- setup for critical path css
- setup for sw generation through workbox

covers: #22, #23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant