vuepress-plugin-define

1.1.1 • Public • Published

npm

vuepress-plugin-define

Bring your configurations from .env into VuePress markdown files.

How to Usage?

1. Installation

yarn add vuepress-plugin-define
 
# Or with npm 
npm install vuepress-plugin-define

2. Setup

Use plugins from a dependency.

module.exports = {
  plugins: ['define'],
}

3. Write your contents

# Example

Home: <const name="HOME" />

4. Options

By default, the content in the code block will not be converted. If you want to use <const name="YOUR VARIABLE" /> in the code block, you can set forceConvert: Boolean to convert it like this:

module.exports = {
  plugins: [
    [
      'define',
      {
        forceConvert: true,
      },
    ],
  ],
}

sqrtthree.com  ·  GitHub @sqrthree  ·  Twitter @sqrtthree

Readme

Keywords

none

Package Sidebar

Install

npm i vuepress-plugin-define

Weekly Downloads

61

Version

1.1.1

License

MIT

Unpacked Size

6.26 kB

Total Files

9

Last publish

Collaborators

  • sqrtthree