// 配置手册: https://cli.vuejs.org/zh/config/#vue-config-js const { defineConfig } = require("@vue/cli-service"); var package = require("./package.json"); var v = package.version; const timestamp = Date.now(); module.exports = defineConfig({ transpileDependencies: true, // publicPath: './', devServer: { port: 8056, proxy: { "/api/": { target: process.env.VUE_APP_DEV_PROXY, changeOrigin: true, }, }, // https://webpack.js.org/configuration/dev-server/#overlay client: { overlay: false, }, }, configureWebpack: { output: { filename: `js/[name].${v}.${timestamp}.js`, chunkFilename: `js/[name].${v}.${timestamp}.js`, }, }, css: { extract: { filename: `css/[name].${v}.${timestamp}.css`, chunkFilename: `css/[name].${v}.${timestamp}.css`, }, }, });