-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathvue.config.js
39 lines (38 loc) · 1009 Bytes
/
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
const { defineConfig } = require('@vue/cli-service');
const path = require("path");
module.exports = defineConfig({
publicPath: "./",
outputDir: path.resolve(__dirname, "dist/public"),
assetsDir: "./assets",
transpileDependencies: true,
lintOnSave: false, // no check
configureWebpack: {
resolve: {
fallback: { path: require.resolve("path-browserify") },
alias: {
"@": path.resolve(__dirname, 'src-frontend')
},
extensions: ['.js', '.vue', '.json']
},
entry: {
app: './src-frontend/main.js'
},
},
chainWebpack: config => {
config
.plugin('html')
.tap((args) =>{
args[0].title = "Bedrock Connector";
// args[0].favicon = path.resolve('./src-frontend/public/favicon.png');
args[0].template = path.resolve('./src-frontend/public/index.html');
return args
} )
},
devServer: {
port: 8080,
// open: true,
client: {
overlay: false //Close error overlayer
},
}
})