ravenq / markdown-it-vue

The vue lib for markdown-it.
MIT License
348 stars 67 forks source link

reduce the boundle size #24

Closed ravenq closed 3 years ago

ravenq commented 4 years ago

the same bug list

18

23

10

6

reduce

vue-cli-plugin-webpack-bundle-analyzer

图片

图片

1. remove the markdown-it-icons

the plugin bundle is large. use markdown-it-font-awsome instead.

2. reduce the hilight.js lang

the support lang:

PR for you lang.

3. use echarts.simple only

the result

图片

图片

markdown-it-vue-light

the light model will remove the mermaid chart supports.

图片

图片

ravenq commented 4 years ago

commit for this issue: 40d493ac5e5df19accd2952ab70893d4dcb5cd62

use the version >= 1.1.0

if the bundle size is too large also for >= 1.1.0

you may use the markdown-it-vue-light:

import MarkdownItVueLight from 'markdown-it-vue/dist/markdonw-it-vue-light.umd.min.js'

the meraid chart will not supports for the markdown-it-vue-light components.

dimitrycastex commented 3 years ago
import MarkdownItVueLight from 'markdown-it-vue/dist/markdonw-it-vue-light.umd.min.js'

please fix the path, is markdown, not markdonw