-
Notifications
You must be signed in to change notification settings - Fork 26
/
vue.config.js
41 lines (40 loc) · 1.19 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
const karmaConfig = require('./karma.config')
module.exports = {
publicPath: process.env.NODE_ENV === 'production'
? '/overwatch-ui/'
: '/',
css: {
loaderOptions: {
sass: {
// @ -> /src
data: `
@import "@/assets/styles/global.scss";
@import "@/assets/styles/reset.scss";
`
}
}
},
configureWebpack: {
performance: {
hints: false
},
},
pluginOptions: {
karma: {
/**
* Takes an object with keys `port` (a Number) and `setup` (a function
* taking an express App object). You can use this to set up an
* Express server that will run alongside your tests.
*/
expressServer: undefined,
/**
* If provided, this will be merged into the base karma config for
* the plugin.
*
* See: https://github.com/webpack-contrib/karma-webpack and
* http://karma-runner.github.io/2.0/config/configuration-file.html
*/
karmaConfig: karmaConfig
}
}
}