-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathvue.config.js
More file actions
34 lines (33 loc) · 748 Bytes
/
Copy pathvue.config.js
File metadata and controls
34 lines (33 loc) · 748 Bytes
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
const path = require('path');
const webpack = require('webpack');
module.exports = {
devServer: {
writeToDisk: true,
},
configureWebpack: {
output: {
library: 'single-spa-auth-app',
libraryTarget: 'umd',
filename: 'single-spa-auth-app.js',
path: path.resolve(__dirname, 'dist'),
},
plugins: [
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1,
}),
],
},
chainWebpack: (config) => {
config.externals([
'@fortawesome/fontawesome-svg-core',
'@fortawesome/free-brands-svg-icons',
'@fortawesome/vue-fontawesome',
'bootstrap',
'bootstrap-vue',
'single-spa-vue',
'vue',
'vue-router',
'vue-toastr',
]);
},
};