-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
46 lines (44 loc) · 1 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
var path = require('path');
module.exports = {
css: {
extract: {
filename: '../styles/build.css'
}
},
chainWebpack: config => {
// Don't create an index.html file
config.plugins.delete('html');
config.plugins.delete('preload');
config.plugins.delete('prefetch');
// Don't copy the /public dir
config.plugin('copy').tap(() => {
return [];
});
},
configureWebpack: {
// Don't create a map file for the js package
devtool: false,
entry: [
'@/styles/_global.less',
'./js/load.js'
],
optimization: {
// Don't split vendor and app into separate JS files
splitChunks: false
},
output: {
filename: 'build.js',
// Prevent lots of files from being created when running npm run dev
hotUpdateChunkFilename: 'hot-updates/hot-update.js',
hotUpdateMainFilename: 'hot-updates/hot-update.json'
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'lib/ui-library/src')
}
},
watch: false
},
outputDir: path.resolve(__dirname, 'js'),
runtimeCompiler: true
};