vuepress-plugin-server-push

0.2.1 • Public • Published

Vuepress Plugin Server Push

Server push links generator for vuepress.

Install

npm add vuepress-plugin-server-push

Usage

Vuepress 1.x

// .vuepress/config.js
const path = require('path')
 
module.exports = {
  plugins: [
    ['server-push', {
      firebase: path.resolve('../firebase.json')
      netlify'_headers' // only file name
    }]
  ]
}

Vuepress 0.x

  • Generate netlify _headers file
vuepress-server-push dist --netlify
  • Generate firebase server push headers link to firebase.json
vuepress-server-push dist --firebase
  • Using postbuild script
{
  scripts{
    build"vuepress build docs -d dist",
    postbuild"vuepress-server-push dist --netlify",
  }
}

Related

Sitemap Generator

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i vuepress-plugin-server-push

    Weekly Downloads

    1

    Version

    0.2.1

    License

    MIT

    Unpacked Size

    3.77 kB

    Total Files

    5

    Last publish

    Collaborators

    • ekoeryanto