作用
alt + shift + 鼠标左键 自动跳转 vscode项目的组件代码
项目地址
https://github.com/zh-lx/code-inspector/blob/main/packages/webpack-plugin/README.md
使用方法
npm i webpack-code-inspector-plugin -D
vue.config.js
// vue.config.js
const WebpackCodeInspectorPlugin = require('webpack-code-inspector-plugin');
module.exports = {
// ...other code
chainWebpack: (config) => {
// add this configuration in the development environment
config
.plugin('webpack-code-inspector-plugin')
.use(new WebpackCodeInspectorPlugin());
},
};
- webpack-code-inspector-plugin 组件 inspector 插件 webpackwebpack-code-inspector-plugin组件inspector webpack-code-inspector-plugin clean-webpack-plugin插件webpack目录 webpack publicpath插件filename webpack webpack-dev-server插件server 基本配置 插件webpack loader 组件webpack require context 样式 插件 尺寸webpack 插件webpack方案 项目 第三方 组件 插件 数字