Socket
Socket
Sign inDemoInstall

vuepress-plugin-post-filter

Package Overview
Dependencies
112
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vuepress-plugin-post-filter

Post filter plugin for vuepress-next


Version published
Maintainers
1
Install size
5.83 kB
Created

Readme

Source

Vuepress-plugin-post-filter

Post filter plugin for vuepress-next

Usage

npm install vuepress-plugin-post-filter
# OR
yarn add vuepress-plugin-post-filter
// .vueprss/config.ts
export default {
  plugins: ["vuepress-plugin-post-filter"]
}

Set frontmatter in your draft:

---
draft: true
# OR
published: false
---

Now, your draft will not publish when building.

Config

// .vueprss/config.ts
export default {
  plugins: [
    [
      "vuepress-plugin-post-filter",
      {
        frontmatter: {
          draft: true,
          published: false
        },
        prodOnly: true,
      }
    ]
  ]
}

Keywords

FAQs

Last updated on 10 Feb 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc