@plugin-light/webpack-loader-remove-scoped
v1.0.0
Published
<p align="center"> <img src="https://img.shields.io/npm/dw/@plugin-light/webpack-loader-remove-scoped"> <img src="https://img.shields.io/npm/unpacked-size/@plugin-light/webpack-loader-remove-scoped"> <img src="https://img.shields.io/npm/v/@plugin-li
Readme
移除 scoped
动态移除 scoped。已不建议使用。
如何使用
安装
pnpm add @plugin-light/webpack-loader-remove-scoped -D在 vue.config.js 中添加如下设置:
const { LOADER: removeScoped } = require('@plugin-light/webpack-loader-remove-scoped');
module.export = {
chainWebpack(config) {
config.module
.rule('vue')
.test(/\.vue$/)
.use(removeScoped)
.loader(removeScoped)
.end();
}
}