forked from asbi-cds-tools/asbi-screening-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
42 lines (41 loc) · 1003 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
const path = require('path');
module.exports = {
configureWebpack: {
module: {
rules: [
{
test: /\.js$/,
use: ["source-map-loader"],
enforce: "pre",
exclude: [
path.resolve(__dirname, 'node_modules/cql-execution/lib'),
path.resolve(__dirname, 'node_modules/fhirclient'),
path.resolve(__dirname, 'node_modules/cql-worker'),
path.resolve(__dirname, 'node_modules/cql-exec-fhir')
]
},
{
test: /\.worker\.js$/,
use: {
loader: 'worker-loader',
options: {
publicPath: '/src/cql/',
inline: true
}
}
},
{
test: /\.js\.map$/,
use: ['ignore-loader']
}
]
}
},
publicPath: process.env.NODE_ENV === 'production'
? '/asbi-screening-app/'
: '/',
pages: {
index: './src/main.js',
launch: './src/launch.js'
}
}