| 12345678910111213141516171819202122 |
- const pkg = require('./package.json');
- module.exports = {
- outputDir: 'dist',
- publicPath: '/admin/',
- chainWebpack: config => {
- config.plugin('define').tap(args => {
- args[0]['process.env']['VUE_APP_VERSION'] = JSON.stringify(pkg.version);
- args[0]['process.env']['VUE_APP_BUILD_TIME'] = JSON.stringify(new Date().toISOString());
- return args;
- });
- },
- devServer: {
- port: 8082,
- proxy: {
- '/api': {
- target: 'http://127.0.0.1:9082',
- changeOrigin: true
- }
- }
- }
- }
|