-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvue.config.js
36 lines (35 loc) · 1.56 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
/**
* This file is part of YourDLT Wallet Components shared under LGPL-3.0
* Copyright (C) 2021 Using Blockchain Ltd, Reg No.: 12658136, United Kingdom
*
* @package YourDLT Wallet Components
* @author Grégory Saive for Using Blockchain Ltd <[email protected]>
* @license LGPL-3.0
*/
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable prettier/prettier */
const path = require('path')
module.exports = {
assetsDir: '\@yourdlt',
// Disables extract of CSS files
css: {extract: false},
// Disables module splitting
configureWebpack: {
optimization: {
splitChunks: false
},
// iView fix for fonts
module: {
rules: [
{ test: /\.eot(\?.*)?$/, loader: 'url-loader?limit=10240&mimetype=application/vnd.ms-fontobject&name=' + path.join('\@yourdlt', 'fonts/[name].[hash:7].[ext]') },
{ test: /\.woff2(\?.*)?$/, loader: 'url-loader?limit=10240&mimetype=application/font-woff2&name=' + path.join('\@yourdlt', 'fonts/[name].[hash:7].[ext]') },
{ test: /\.woff(\?.*)?$/, loader: 'url-loader?limit=10240&mimetype=application/font-woff&name=' + path.join('\@yourdlt', 'fonts/[name].[hash:7].[ext]') },
{ test: /\.ttf(\?.*)?$/, loader: 'url-loader?limit=10240&mimetype=application/font-ttf&name=' + path.join('\@yourdlt', 'fonts/[name].[hash:7].[ext]') }
]
}
},
// Enables templates in .vue files
runtimeCompiler: true,
// Keep filenames untouched during build
filenameHashing: false
}