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

Made with ❤️ by Ahmad Mostafa - @z3by