You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
774 B

2 years ago
const { defineConfig } = require('@vue/cli-service')
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
module.exports = defineConfig({
transpileDependencies: true,
devServer: {
port: 8080
},
configureWebpack: {
2 years ago
// watch: true,
experiments: {
topLevelAwait: true
},
plugins: [new NodePolyfillPlugin()],
optimization: {
splitChunks: {
chunks: "all",
},
},
resolve: {
fallback: {
2 years ago
"fs": false,
"tls": false,
"net": false,
"utf-8-validate": false,
"bufferutil": false
}
},
2 years ago
},
chainWebpack: config => {
config.module
.rule('yaml')
.test(/\.ya?ml?$/)
.use('yaml-loader')
.loader('yaml-loader')
}
})