zoukankan      html  css  js  c++  java
  • 11

     

     vue.config.js

    const path = require('path')
    function resolve (dir) {
      return path.join(__dirname, '.', dir)
    }
    module.exports = {
        publicPath: "./",
        outputDir: 'dist',
        assetsDir: 'static',
        /* 是否在构建生产包时生成 sourceMap 文件,false将提高构建速度 */
        lintOnSave: false,
        chainWebpack: config => {
            const svgRule = config.module.rule("svg");
            svgRule.uses.clear();
            svgRule
            .use("svg-sprite-loader")
            .loader("svg-sprite-loader")
            .options({
                symbolId: "icon-[name]"
             });
           },
        devServer: {
            open: true,
            https: false,
            proxy: {
                '/v2': {
                    target: process.env.VUE_APP_API_URL1,
                    ws: true,
                    changeOrigin: true,
                }
            }
        },

    }
  • 相关阅读:
    ajax优缺点
    关于测量专业软件使用感受及建议
    12.7
    12.6
    场景调研
    对搜狗输入法的看法及建议
    12.9
    12.8
    12.5站立会议
    12.4站立会议
  • 原文地址:https://www.cnblogs.com/bwnnxxx123/p/15745880.html
Copyright © 2011-2022 走看看