Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reduce the boundle size #24

Closed
ravenq opened this issue May 31, 2020 · 2 comments
Closed

reduce the boundle size #24

ravenq opened this issue May 31, 2020 · 2 comments

Comments

@ravenq
Copy link
Owner

ravenq commented May 31, 2020

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:

  • HTML
  • Json
  • css
  • shell
  • bash
  • C
  • Java
  • Python
  • C++
  • C#
  • PHP
  • SQL
  • R
  • Swift
  • Go
  • MATLAB
  • Ruby
  • Perl
  • Objective-C
  • Rust
  • Dart
  • Delphi
  • D
  • Kotlin
  • Scala
  • SAS
  • Lisp
  • Lua
  • Ada
  • Fortran
  • PowerShell
  • VBScript
  • VBscript-html
  • Groovy
  • Julia
  • Julia-repl
  • LabVIEW
  • Haskell
  • ActionScript
  • Scheme
  • TypeScript
  • F#
  • Prolog
  • Erlang

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
Copy link
Owner Author

ravenq commented May 31, 2020

commit for this issue: 40d493a

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
Copy link

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

please fix the path, is markdown, not markdonw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants