1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- const {defineConfig} = require('@vue/cli-service')
- module.exports = defineConfig({
- transpileDependencies: true,
-
-
-
-
- css: {
- loaderOptions: {
- less: {
-
- modifyVars: {
-
- hack: `true; @import "./src/assets/theme.less";`,
- },
- },
- },
- },
- devServer: {
- client: {
- overlay: false
- },
- hot: true,
- port: 8080,
- host: "0.0.0.0",
- proxy: {
- '/api': {
- target: 'https://api.ruanjian168.cc',
- changeOrigin: true,
- logLevel: 'debug',
- pathRewrite: {
- '^/api': '/api'
- }
- }
- }
-
-
- },
- configureWebpack: {
- optimization: {
- splitChunks: {
- cacheGroups: {
- app: {
- chunks: "all",
- name: "main",
- test: /[\\/]src[\\/](.*)[\\/]/,
- },
- vendor: {
- test: /[\\/]node_modules[\\/][\\/]/,
- name: "vendor",
- chunks: "all",
- },
- },
- },
- },
- },
- publicPath: "./",
- outputDir: "dist",
- assetsDir: "assets",
- runtimeCompiler: true,
- })
|