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
const path = require('path')
module.exports = {
plugins: [
['server-push', {
firebase: path.resolve('../firebase.json')
netlify: '_headers'
}]
]
}
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
{
scripts: {
build: "vuepress build docs -d dist",
postbuild: "vuepress-server-push dist --netlify",
}
}
Related
Sitemap Generator
/vuepress-plugin-server-push/
//
Package Sidebar
Install
npm i vuepress-plugin-server-push
Weekly Downloads