VSCode配置Webpack路径提示及智能跳转
Webpack 配置
resolve: {
modules: [
'node_modules',
path.resolve(__dirname, '../src')
],
extensions: ['.js', '.vue', '.json', '.css'],
alias: {
vue$: 'vue/dist/vue.esm.js',
public: path.resolve(__dirname, '../public'),
component: path.resolve(__dirname, '../src/component'),
config: path.resolve(__dirname, '../src/config'),
lib: path.resolve(__dirname, '../src/lib'),
i18n: path.resolve(__dirname, '../src/i18n'),
store: path.resolve(__dirname, '../src/store')
}
}