0.0.16 • Published 12 months ago

vue-overview-plugin v0.0.16

Weekly downloads
-
License
-
Repository
github
Last release
12 months ago

使用方法

  • 以 vue routes 导出文件为入口进行打包
    • 会调用 vue-overview-loader 对 .vue | js | ts 文件进行处理
    • 其他文件会获取代码大纲
    • 打包的结果会输出到项目输出目录/vue-overview中,点击 index.html 可以直接访问代码大纲
  • vue.config.js
const { defineConfig } = require('@vue/cli-service')
const VueOverviewPlugin = require('vue-overview-plugin')

module.exports = defineConfig({
  transpileDependencies: true,
  configureWebpack: {
    plugins: [
      new VueOverviewPlugin({
        // 入口文件,导出 vue 路由信息的文件
        entry: './src/router/routes.ts',
        // 路由信息包含哪些文件,这些文件不会被处理
        routes: {
          include: /routes\.ts$/,
        }
      })
    ]
  }
})
0.0.13

12 months ago

0.0.14

12 months ago

0.0.15

12 months ago

0.0.16

12 months ago

0.0.12

12 months ago

0.0.11

12 months ago

0.0.10

12 months ago

0.0.9

12 months ago

0.0.8

12 months ago

0.0.7

12 months ago

0.0.6

12 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago