1 Star 1 Fork 0

一弦一柱/Boot System

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
vue.config.js 2.05 KB
Copy Edit Raw Blame History
一弦一柱 authored 2022-09-15 16:29 . Update ElementPlus to 2.x
'use strict';
// eslint-disable-next-line @typescript-eslint/no-var-requires
const defaultSettings = require('./src/settings.js');
// eslint-disable-next-line @typescript-eslint/no-var-requires
// const resolve = dir => require('path').join(__dirname, dir);
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { defineConfig } = require('@vue/cli-service');
// https://cli.vuejs.org/zh/config/
module.exports = defineConfig({
publicPath: '/',
outputDir: 'dist',
assetsDir: 'static',
lintOnSave: process.env.NODE_ENV === 'development',
productionSourceMap: false,
devServer: {
port: 1105,
open: true,
proxy: {
'/api': {
target: process.env.VUE_APP_HTTP,
changeOrigin: true,
ws: true,
pathRewrite: {
'/api': '',
},
},
},
},
configureWebpack: {
name: defaultSettings.title,
resolve: {
// https://github.com/babel/babel/issues/8462
// https://blog.csdn.net/qq_39807732/article/details/110089893
// 如果确认需要node polyfill,设置resolve.fallback安装对应的依赖
fallback: {
// crypto: require.resolve('crypto-browserify'),
path: require.resolve('path-browserify'),
// url: require.resolve('url'),
// buffer: require.resolve('buffer/'),
// util: require.resolve('util/'),
// stream: require.resolve('stream-browserify/'),
// vm: require.resolve('vm-browserify')
},
// 如果确认不需要node polyfill,设置resolve.alias设置为false
// alias: {
// crypto: false
// }
},
},
css: {
loaderOptions: {
sass: {
additionalData: '@import "@/assets/styles/index.scss";',
// additionalData: '@import "@/assets/styles/index.scss";',
// additionalData: '@use "@/assets/styles/index.scss" as *;',
// additionalData: '@use "@/assets/styles/element-variables.scss" as *;',
// additionalData: '@use "@/assets/styles/element-variables.scss" as *;@import "~@/assets/styles/index.scss";',
},
},
},
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/idaijunming/boot-system.git
git@gitee.com:idaijunming/boot-system.git
idaijunming
boot-system
Boot System
main

Search