const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')

module.exports = {
    devServer: {
        open: true,
        port: 6588,
        proxy: {
            '/api': {
                target: process.env.VUE_APP_BASE_URL,
                pathRewrite: {
                    '^/api': ''
                }
            }
        }
    },
    lintOnSave: false,
    css: {
        loaderOptions: {
            less: {
                javascriptEnabled: true
            }
        }
    },
    configureWebpack: {
        plugins: [
            new MonacoWebpackPlugin()
        ]
    }
}