vue.config.js 433 B

123456789101112131415161718
  1. const {
  2. name,
  3. } = require('./package.json');
  4. module.exports = {
  5. publicPath: `/sagadaping`, //相对路径
  6. outputDir: name, //打包名称
  7. assetsDir: 'static', //静态目录
  8. lintOnSave: false, //关闭lint代码
  9. productionSourceMap: false, // 生产环境是否开启sourceMap
  10. // 配置跨域
  11. devServer: {
  12. port: 8080, // 服务端口
  13. https: false,
  14. hotOnly: false,
  15. }
  16. }