vue项目打包:修改dist文件名

vue.config.js

// 输出文件目录(默认dist)
	outputDir: 'web',
const path = require('path')

const resolve = dir => path.join(__dirname, dir)

module.exports = {
	// 基本路径
	publicPath: './',
	// 输出文件目录(默认dist)
	outputDir: 'web',
	// 关闭eslint验证
	lintOnSave: false,
	// 静态目录代理
	chainWebpack: config => {
		config.resolve.alias
			.set('@', resolve('src'))
			.set('@components', resolve('src/components'))
			.set('@assets', resolve('src/assets'))
			.set('@image', resolve('src/assets/image'))
			.set('@view', resolve('src/view'))
	}

posted @ 2021-07-07 11:03  江咏之  阅读(712)  评论(0编辑  收藏  举报