1.0.0 • Published 5 months ago

@plugin-light/webpack-plugin-insert-global-comp v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

全局组件注入

小程序下将 app.json 中出现的全局组件,即 usingComponents,注入到每个页面/组件的 usingComponents 中。已不建议使用。

如何使用

安装

pnpm add @plugin-light/webpack-plugin-insert-global-comp -D

vue.config.js 中添加如下设置:

const { InsertGlobalCompPlugin } = require('@plugin-light/webpack-plugin-insert-global-comp');


module.exports = {
  configureWebpack: {
    plugins: [new InsertGlobalCompPlugin({
      namespace: 'convert-cross',
    })],
  }
}

类型

export interface IInsertGlobalCompOptions {
  namespace?: string;
}

更新日志

点此查看

1.0.0

5 months ago

0.0.4

1 year ago