123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- const path = require('path');
- module.exports = {
- parallel: false,
- productionSourceMap: false,
- outputDir: 'page_docs_pc',
- publicPath: process.env.VUE_APP_BASE_PUBLIC,
- lintOnSave: true,
- devServer: {
- port: '8080',
- disableHostCheck: true,
- proxy: {
- '^/jydocs': {
- target: 'https://jybx3-webtest.jydev.jianyu360.com',
- // target: 'http://172.17.16.53:821',
- // target: 'http://192.168.20.180:821',
- changeOrigin: true,
- logLevel: 'debug',
- pathRewrite: {
- '^/jydocs': '/jydocs'
- }
- },
- '^/publicapply': {
- target: 'https://jybx3-webtest.jydev.jianyu360.com',
- // target: 'http://172.17.16.53:821',
- // target: 'http://192.168.20.180:821',
- changeOrigin: true,
- logLevel: 'debug',
- pathRewrite: {
- '^/publicapply': '/publicapply'
- }
- },
- '^/jyintegral': {
- target: 'https://jybx3-webtest.jydev.jianyu360.com',
- // target: 'http://192.168.20.145:820',
- changeOrigin: true,
- logLevel: 'debug',
- pathRewrite: {
- '^/jyintegral': '/jyintegral'
- }
- },
- '^/jypay': {
- target: 'https://jybx3-webtest.jydev.jianyu360.com',
- // target: 'http://192.168.20.145:820',
- changeOrigin: true,
- logLevel: 'debug',
- pathRewrite: {
- '^/jypay': '/jypay'
- }
- }
- }
- },
- css: {
- loaderOptions: {
- sass: {
- prependData: '@import "@/assets/style/_mixin.scss";@import "@/assets/style/_variables.scss";'
- }
- }
- },
- configureWebpack: {
- resolve: {
- alias: {
- '@': path.resolve(__dirname, 'src/')
- }
- }
- },
- chainWebpack: config => {
- if (!process.env.VUE_APP_ALONE) {
- config.devServer.set('inline', false)
- config.devServer.set('hot', true)
- if (process.env.NODE_ENV !== 'production') {
- config.output.filename('js/[name].js')
- }
- config.externals(['vue', 'vue-router'])
- }
- },
- filenameHashing: false
- }
|