process.env.VUE_APP_VERSION = require('./package.json').version const { defineConfig } = require("@vue/cli-service"); module.exports = defineConfig({ //runtimeCompiler:true, transpileDependencies: true, lintOnSave: false, devServer: { proxy: { '/de8ca050_0dRC_b6f9': { target: 'http://152.136.144.149:9999/', changeOrigin: true, //需要代理跨域 rewrite: (path) => path.replace(/^\/de8ca050_0dRC_b6f9/, ''), //路径重写,把'/api'替换为'' }, }, }, chainWebpack: config => { config.module .rule('glb') .test(/\.glb$/) .use('file-loader') .loader('file-loader') .end() }, });