FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
wordpress-develop/webpack.config.js at trunk · JulioPotier/wordpress-develop · GitHub
JulioPotier
/
wordpress-develop
Public
forked from
WordPress/wordpress-develop
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
wordpress-develop
/
webpack.config.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (19 loc) · 639 Bytes
Breadcrumbs
wordpress-develop
/
webpack.config.js
Copy path
File metadata and controls
23 lines (19 loc) · 639 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
18
19
20
21
22
23
const
blocksConfig
=
require
(
'./tools/webpack/blocks'
)
;
const
developmentConfig
=
require
(
'./tools/webpack/development'
)
;
const
mediaConfig
=
require
(
'./tools/webpack/media'
)
;
const
packagesConfig
=
require
(
'./tools/webpack/packages'
)
;
module
.
exports
=
function
(
env
=
{
environment
:
"production"
,
watch
:
false
,
buildTarget
:
false
}
)
{
if
(
!
env
.
watch
)
{
env
.
watch
=
false
;
}
if
(
!
env
.
buildTarget
)
{
env
.
buildTarget
=
(
env
.
mode
===
'production'
?
'build/'
:
'src/'
)
;
}
const
config
=
[
blocksConfig
(
env
)
,
...
developmentConfig
(
env
)
,
mediaConfig
(
env
)
,
packagesConfig
(
env
)
,
]
;
return
config
;
}
;
Back
|
FazBrowse Home
|
New Git URL