-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvue.config.js
More file actions
43 lines (41 loc) · 1.04 KB
/
vue.config.js
File metadata and controls
43 lines (41 loc) · 1.04 KB
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
42
43
const Dotenv = require('dotenv-webpack');
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
chainWebpack: (config) => {
config.module
.rule('vue')
.use('vue-loader')
.tap((options) => ({
...options,
compilerOptions: {
// treat any tag that starts with ce- as custom elements
isCustomElement: (tag) => tag.startsWith('opencdms-'),
},
}))
},
pwa: {
name: 'OpenCDMS',
themeColor: '#3c4b64',
msTileColor: '#3c4b64',
appleMobileWebAppCapable: 'yes',
appleMobileWebAppStatusBarStyle: 'black',
manifestOptions: {
background_color: '#3c4b64',
},
},
configureWebpack: {
plugins: [
new Dotenv()
],
resolve: {
fallback: {
fs: false,
crypto: require.resolve("crypto-browserify"),
path: require.resolve("path-browserify"),
https: require.resolve("https-browserify"),
http: require.resolve("stream-http")
}
}
}
})