-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
38 lines (34 loc) · 1.11 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
const path = require('path')
module.exports = {
publicPath: process.env.NODE_ENV === 'production'
? '/controls-js/'
: '/',
"transpileDependencies": [
"vuetify"
],
chainWebpack: config => {
config.resolve.symlinks(false);
config.module
.rule('wasm')
.type('javascript/auto')
.test(/\.wasm$/)
.use('arraybuffer-loader')
.loader('arraybuffer-loader')
.end()
const svgRule = config.module.rule('svg');
svgRule.uses.clear();
svgRule
.use('babel-loader')
.loader('babel-loader')
.end()
.use('html-loader')
.loader('html-loader');
config.resolve.alias.set('@src', path.resolve(__dirname, 'src'))
config.resolve.alias.set('@assets', path.resolve(__dirname, 'src/assets'))
// Swap out with the below lines for local development
config.resolve.alias.set('@eigen', 'eigen')
config.resolve.alias.set('@nlopt', 'nlopt-js')
// config.resolve.alias.set('@eigen', path.resolve(__dirname, '../eigen-js/dist/index.js'))
// config.resolve.alias.set('@nlopt', path.resolve(__dirname, '../nlopt-js/dist/index.js'))
}
}