-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
50 lines (47 loc) · 837 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
40
41
42
43
44
45
46
47
48
49
50
'use strict';
const path = require('path');
function resolve(dir) {
return path.join(__dirname, dir);
}
const port = 8384;
module.exports = {
pages: {
index: {
entry: resolve('src/main.ts'),
},
},
publicPath: '/',
outputDir: 'build',
assetsDir: 'static',
lintOnSave: process.env.NODE_ENV === 'development',
productionSourceMap: false,
css: {
loaderOptions: {
scss: {
additionalData: `@import "@/styles/sass/_variables.scss";`,
},
},
},
devServer: {
port: port,
open: true,
overlay: {
warnings: true,
errors: true,
},
},
configureWebpack: {
name: process.env.VUE_APP_NAME,
performance: {
hints: false,
},
resolve: {
extensions: ['.ts', '.js', '.vue', '.json'],
alias: {
'@': resolve('src'),
},
},
},
pluginOptions: {},
transpileDependencies: ['vuetify'],
};