1.0.0 • Published 5 months ago

@plugin-light/webpack-loader-auto-placeholder v1.0.0

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

增加占位符

小程序下,自动增加占位组件。已不建议使用。

如何使用

安装

pnpm add @plugin-light/webpack-loader-auto-placeholder -D

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

const { LOADER: autoPlaceHolder } = require('@plugin-light/webpack-loader-auto-placeholder');

module.export = {
  chainWebpack(config) {
    config.module
      .rule('vue')
      .test(/\.vue$/)
      .use(autoPlaceHolder) 
      .loader(autoPlaceHolder)
      .end();
  }
}

更新日志

点此查看