/vuepress-plugin-remove-html-extension

📗 VuePress v2 plugin for generating clean urls without .html extension.

Primary LanguageTypeScriptMIT LicenseMIT

vuepress-plugin-remove-html-extension

VuePress

Version Downloads

VuePress v2 plugin for generating clean urls without .html extension.

Installation

npm install --save vuepress-plugin-remove-html-extension

Usage

Add plugin to your VuePress config:

import { removeHtmlExtensionPlugin } from 'vuepress-plugin-remove-html-extension'

export default {
  plugins: [removeHtmlExtensionPlugin()],
}

Netlify

If you are using Netlify to deploy your website, open "Site settings", "Build and deploy" tab. In the "Asset optimization" section, check the "Pretty URLs" checkbox.

Contribution

Pull requests are welcome.