12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- const path = require('path');
- var packageConfig = require('./package.json');
- function resolve(dir) {
- return path.join(__dirname, '..', dir);
- }
- module.exports = {
- devServer: {
- port: 8081,
- proxy: {
- '/baseService': {
-
-
- target: 'http://develop.ysbdtp.com',
-
- changeOrigin: true,
- ws: true,
- pathRewrite: {
- '^/baseService': ''
- }
- },
- }
- },
- pages: {
- index: {
- entry: 'src/main.js',
- template: 'public/index.html',
- filename: 'index.html'
- }
- },
- publicPath: '/' + packageConfig.name,
-
- outputDir: packageConfig.name,
-
- assetsDir: 'public',
-
- indexPath: 'index.html',
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- configureWebpack: {
- resolve: {
- alias: {
- 'vue$': 'vue/dist/vue.esm.js'
- }
- }
- }
- };
|