forked from ramp4-pcar4/story-ramp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
55 lines (52 loc) · 1.37 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
49
50
51
52
53
54
55
const path = require('path');
module.exports = {
pages: {
index: {
entry: './src/main.ts',
template: 'public/index.html',
filename: 'index.html',
title: 'RAMP Storylines'
},
indexCanadaEn: {
entry: './src/main.ts',
template: 'public/index-ca-en.html',
filename: 'index-ca-en.html',
title: 'RAMP Storylines'
},
indexCanadaFr: {
entry: './src/main.ts',
template: 'public/index-ca-fr.html',
filename: 'index-ca-fr.html',
title: 'Scenarios de PCAR'
}
},
publicPath: '',
configureWebpack: {
resolve: {
alias: {
'@storylines': path.resolve(__dirname, 'src/')
}
}
},
chainWebpack: (config) => {
config.module
.rule('lint')
.test(/lang\.csv$/)
.use('eslint')
.loader('dsv-loader')
.end();
config.module
.rule('html')
.test(/(.)*.(html)$/)
.use('html-loader')
.loader('html-loader')
.end();
config.module
.rule('cjs')
.test(/\.cjs$/)
.include.add(/node_modules/)
.end()
.use('babel-loader')
.loader('babel-loader');
}
};