vue.config.js
2019-11-13 本文已影响0人
Hello杨先生
const path = require('path')
module.exports = {
publicPath: './',
outputDir: 'dist', //打包输出目录默认dist
assetsDir: '', //放置生成的静态资源 默认 ''
//设置静态资源路径
devServer: {
contentBase: path.join(__dirname, 'public')
}
}