UNPKG

vue-linkto-vscode

Version:

``` 引入只需如下三步 //1、install package npm install -s vue-linkto-vscode //2、vue.config.js const { vueCodeLinkServer, vueCodeLinkLoaderConfig } = require('vue-linkto-vscode') module.exports = { ... devServer: {

10 lines (8 loc) 302 B
// 绝对路径前置路径 import { dirname } from 'path' import { fileURLToPath } from 'url' const __dirname = dirname(fileURLToPath(import.meta.url)) const projectBasePath = __dirname.substring(0, __dirname.search('node_modules')) module.exports = { projectBasePath: projectBasePath }