FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
frontend-plugin-framework/example/webpack.dev.config.js at master · openedx/frontend-plugin-framework · GitHub
openedx
/
frontend-plugin-framework
Public
Notifications
You must be signed in to change notification settings
Fork
28
Star
13
Code
Issues
10
Pull requests
12
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
frontend-plugin-framework
/
example
/
webpack.dev.config.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (16 loc) · 850 Bytes
Breadcrumbs
frontend-plugin-framework
/
example
/
webpack.dev.config.js
Copy path
File metadata and controls
17 lines (16 loc) · 850 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const
path
=
require
(
'path'
)
;
const
{
createConfig
}
=
require
(
'@openedx/frontend-build'
)
;
module
.
exports
=
createConfig
(
'webpack-dev'
,
{
resolve
:
{
alias
:
{
// Note: these four aliases are a manual version of what module.config.js solves in our
// applications. Because this example app is using code from the parent frontend-plugin-framework
// library, it runs into the same issues our applications do when loading libraries from
// local source, rather than from their node_modules directory.
'@openedx/frontend-plugin-framework'
:
path
.
resolve
(
__dirname
,
'..'
,
'dist'
)
,
react
:
path
.
resolve
(
__dirname
,
'node_modules'
,
'react'
)
,
'react-dom'
:
path
.
resolve
(
__dirname
,
'node_modules'
,
'react-dom'
)
,
'react-router-dom'
:
path
.
resolve
(
__dirname
,
'node_modules'
,
'react-router-dom'
)
,
}
,
}
,
}
)
;
Back
|
FazBrowse Home
|
New Git URL