-
Notifications
You must be signed in to change notification settings - Fork 37
/
vue.config.js
43 lines (43 loc) · 1.48 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
const ModuleFederationPlugin = require('@module-federation/enhanced').ModuleFederationPlugin;
const path = require('path')
require("@hotwax/app-version-info")
module.exports = {
configureWebpack: {
resolve: {
alias: {
vue: path.resolve('./node_modules/vue')
}
},
plugins: [
new ModuleFederationPlugin({
name: "fulfillment",
shared: {
vue: { singleton: true, eager: true },
"vue-logger-plugin": { singleton: true, eager: true },
"vue-router": { singleton: true, eager: true },
vuex: { singleton: true, eager: true },
"vuex-persistedstate": { singleton: true, eager: true },
"@ionic/core": { singleton: true, eager: true },
"@ionic/vue": { singleton: true, eager: true },
"@ionic/vue-router": { singleton: true, eager: true },
"@hotwax/app-version-info": { singleton: true, eager: true },
"@hotwax/apps-theme": { singleton: true, eager: true },
"@hotwax/dxp-components": { singleton: true, eager: true },
"@hotwax/oms-api": { singleton: true, eager: true },
},
})
],
optimization: {
splitChunks: false,
runtimeChunk: false
},
},
devServer: {
port: 8100, // Ensure this port is different from the host
headers: {
"Access-Control-Allow-Origin": "*", // Allow all origins (for development only)
}
},
runtimeCompiler: true,
transpileDependencies: ['@hotwax/dxp-components']
}