-
Notifications
You must be signed in to change notification settings - Fork 4
/
vue.config.js
41 lines (41 loc) · 1.07 KB
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const webpack = require("webpack");
const { defineConfig } = require("@vue/cli-service");
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
module.exports = defineConfig({
publicPath: process.env.NODE_ENV === "qa" ? "" : "./",
transpileDependencies: true,
lintOnSave: true,
configureWebpack: {
plugins: [
new webpack.ProvidePlugin({
Buffer: ["buffer", "Buffer"],
}),
new NodePolyfillPlugin(),
],
},
pluginOptions: {
vuetify: {
// https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vuetify-loader
},
},
chainWebpack: (config) => {
config.module
.rule("web3-name-sdk")
.test(/node_modules\/@web3-name-sdk\/.*\.js$/)
.use("babel")
.loader("babel-loader")
.end();
config.module
.rule("viem")
.test(/node_modules\/viem\/.*\.js$/)
.use("babel")
.loader("babel-loader")
.end();
config.module
.rule("abitype")
.test(/node_modules\/abitype\/.*\.js$/)
.use("babel")
.loader("babel-loader")
.end();
},
});