9 Star 48 Fork 15

Maybe/mv-count-down

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vue.config.js 869 Bytes
一键复制 编辑 原始数据 按行查看 历史
Maybe 提交于 2019-09-03 14:04 +08:00 . 二〇一九年九月三日 14:04:07
/**
* vue.config 配置
* @author maybe
*/
const path = require('path');
// const fs = require('fs')
// __dirname 总是指向被执行 js 文件的绝对路径
const resolve = dir => {
return path.join(__dirname, dir);
};
// 项目部署基础
// const BASE_URL = process.env.NODE_ENV === 'production' ? '/web' : '/';
module.exports = {
publicPath: '/mv-count-down',
assetsDir: 'assets', //静态资源目录(js,css,img,fonts)这些文件都可以写里面
// 打包时不生成.map文件
productionSourceMap: false,
// 输出文件目录
outputDir: 'dist',
chainWebpack: config => {
config.resolve.alias
.set('@', resolve('src'))
},
// webpack-dev-server 相关配置
devServer: {
// 禁用host验证
disableHostCheck: true,
// 设置主机地址
host: '0.0.0.0',
// 设置默认端口
port: 53333,
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/null_639_5368/mv-count-down.git
git@gitee.com:null_639_5368/mv-count-down.git
null_639_5368
mv-count-down
mv-count-down
master

搜索帮助