-
Notifications
You must be signed in to change notification settings - Fork 5
/
vue.config.js
53 lines (49 loc) · 1.32 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
42
43
44
45
46
47
48
49
50
51
52
53
const { VuetifyPlugin } = require('webpack-plugin-vuetify');
const DotenvWebpack = require("dotenv-webpack");
const { defineConfig } = require("@vue/cli-service");
const webpack = require("webpack");
const path = require("path");
module.exports = defineConfig({
publicPath: "./",
configureWebpack: {
plugins: [
new VuetifyPlugin(),
new DotenvWebpack({
path: ".env",
systemvars: true,
// See https://stackoverflow.com/questions/67431401/conflicting-values-for-process-env-with-webpack-encore-and-dotenv
ignoreStub: true
}),
new webpack.DefinePlugin({
// https://github.com/vuejs/vue-cli/pull/7443
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'false',
})
],
resolve: {
alias: {
vue: path.resolve("./node_modules/vue")
}
},
module: {
rules: [
{
test: /\.csv/,
type: 'asset/source',
},
{
test: /\.zip/,
type: 'asset/resource'
}
]
}
},
// Needed for BrowserStack/Safari testing as of 2023 March. This makes the
// dev server insecure, but that's OK since we only use it in controlled
// circumstances. https://stackoverflow.com/questions/43619644
devServer: {
allowedHosts: 'all',
client: {
overlay: false
}
}
});