-
Notifications
You must be signed in to change notification settings - Fork 1
/
vue.config.js
48 lines (41 loc) · 1.02 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
const path = require('path');
const electronBuilderOptions = require('./electron-builder.json');
function resolvePath(pathToResolve) {
return path.resolve(__dirname, pathToResolve);
}
module.exports = {
lintOnSave: false,
pages: {
index: {
entry: 'src/main.js',
chunks: ['chunk-vendors', 'chunk-common', 'index', 'preload'],
},
},
chainWebpack: (config) => {
config.resolve.alias.set('styles', resolvePath('src/styles'));
config.entry('preload').add(resolvePath('src/styles/preload.scss'));
},
configureWebpack: {
node: {
global: true,
},
},
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
chainWebpackMainProcess: (config) => {
config.resolve.alias.set('@', resolvePath('src'));
return config;
},
// TODO: Fix icons not showing in Linux package installers
builderOptions: electronBuilderOptions,
},
},
css: {
loaderOptions: {
sass: {
implementation: require('sass'),
},
},
}
};