Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Anthony Gore
Latest commit abe88d1 May 18, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Upgrading to v2 of critical plugin May 18, 2018 Updating README Mar 21, 2018
index.js First commit Mar 19, 2018
package.json Upgrading to v2 of critical plugin May 18, 2018

Critical CSS Plugin for Vue CLI 3

Adds html-critical-webpack-plugin to a Vue CLI project, which extracts critical CSS and inlines it into the document head.

Any options which can be passed to HtmlCriticalPlugin can be passed to vue.config.js under the property pluginOptions.critical e.g.

module.exports = {
    pluginOptions: {
        critical: {
            width: 375,
            height: 565    


npm i -D vue-cli-plugin-critical
npm run build ## Only runs in production mode
You can’t perform that action at this time.