-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathvue.config.js
More file actions
35 lines (34 loc) · 839 Bytes
/
vue.config.js
File metadata and controls
35 lines (34 loc) · 839 Bytes
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
const { VuetifyPlugin } = require("webpack-plugin-vuetify");
module.exports = {
transpileDependencies: ["vuetify"],
publicPath: process.env.BASE_URL ? process.env.BASE_URL : "/",
configureWebpack: {
resolve: {
fallback: {
crypto: require.resolve("crypto-browserify"),
stream: require.resolve("stream-browserify"),
},
},
plugins: [new VuetifyPlugin()],
},
chainWebpack: (config) => {
config
.plugin("html")
.tap((args) => {
args[0].title = "DP-GUI";
return args;
})
.end()
.module.rule("js")
.test(/\.m?jsx?$/)
.use("babel-loader")
.loader("babel-loader")
.end()
.use("ifdef-loader")
.loader("ifdef-loader")
.options({
"ifdef-uncomment-prefix": "// #code ",
})
.end();
},
};