-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
33 lines (31 loc) · 912 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
const appConfig = require('./src/app.config');
module.exports = {
publicPath: process.env.NODE_ENV === 'development' ? '/' : '/trinityspace/ui/',
outputDir: 'build',
configureWebpack: {
// We provide the app's title in Webpack's name field, so that
// it can be accessed in index.html to inject the correct title.
name: appConfig.title,
// Set up all the aliases we use in our app.
resolve: {
alias: require('./aliases.config').webpack,
},
},
chainWebpack: config => {
// We need this so the relative fonts in brand-design scss can be found!
config.module
.rule('scss')
.oneOf('vue')
.use('resolve-url-loader')
.loader('resolve-url-loader')
.options({
keepQuery: true,
})
.before('sass-loader');
// config.plugins.delete('prefetch');
},
css: {
// Enable CSS source maps.
sourceMap: true,
},
};