123456789101112131415161718192021222324252627282930313233343536373839 |
- const { defineConfig } = require('@vue/cli-service')
- const baseUrl = require('./src/utils/baseUrl.js')
- const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
- module.exports = defineConfig({
- transpileDependencies: true,
- lintOnSave: false,
-
-
-
-
-
-
-
- publicPath: '/',
- configureWebpack: {
- externals: {
- 'fs': require('fs')
- },
- plugins: [
- new MonacoWebpackPlugin()
- ]
- },
- devServer: {
- port: 8080,
- proxy: process.env.NODE_ENV === "development" ? {
- [baseUrl.ROOT]: {
- target: baseUrl.URL,
-
- changeOrigin: true,
- ws: false,
- pathRewrite: {
-
- [`^${baseUrl.ROOT}`]: ''
- }
- },
- } : baseUrl.ROOT
- }
- })
|