-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
25 lines (23 loc) · 657 Bytes
/
webpack.config.js
File metadata and controls
25 lines (23 loc) · 657 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
const { merge } = require('webpack-merge')
const singleSpaDefaults = require('webpack-config-single-spa-react-ts')
const path = require('path')
module.exports = (webpackConfigEnv, argv) => {
const defaultConfig = singleSpaDefaults({
orgName: 'joacod',
projectName: 'microfrontends-react',
webpackConfigEnv,
argv,
})
return merge(defaultConfig, {
// modify the webpack config however you'd like to by adding to this object
devServer: {
port: 9001,
},
resolve: {
alias: {
'@images': path.resolve(__dirname, 'public/images'),
},
},
externals: ['@joacod/microfrontends-utility'],
})
}