feat: webpack将多个js文件打包为一个js文件(将node包转为本地引入方案)
parent
3ab05a8746
commit
763087b119
@ -0,0 +1 @@
|
||||
## 请参考demoBuildCli目录演示
|
||||
@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<div
|
||||
class="markdown-body"
|
||||
v-html="htmlStr"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
import { marked } from 'marked';
|
||||
import { getMarkdownContent } from '@/utils/tools';
|
||||
|
||||
const htmlStr = ref('');
|
||||
|
||||
getMarkdownContent('./md/buildCli.md').then((res) => {
|
||||
htmlStr.value = marked(res);
|
||||
});
|
||||
</script>
|
||||
Loading…
Reference in New Issue