FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
frontend/webpack.config.js at threeNewBanners · devhttps/frontend · GitHub
devhttps
/
frontend
Public
forked from
guardian/frontend
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
frontend
/
webpack.config.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
116 lines (112 loc) · 3.64 KB
Breadcrumbs
frontend
/
webpack.config.js
Copy path
File metadata and controls
116 lines (112 loc) · 3.64 KB
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/* eslint-disable import/no-extraneous-dependencies */
const
path
=
require
(
'path'
)
;
const
CircularDependencyPlugin
=
require
(
'circular-dependency-plugin'
)
;
const
webpack
=
require
(
'webpack'
)
;
module
.
exports
=
{
entry
:
{
standard
:
path
.
join
(
__dirname
,
'static'
,
'src'
,
'javascripts'
,
'boot.js'
)
,
admin
:
path
.
join
(
__dirname
,
'static'
,
'src'
,
'javascripts'
,
'bootstraps'
,
'admin.js'
)
,
'video-embed'
:
path
.
join
(
__dirname
,
'static'
,
'src'
,
'javascripts'
,
'bootstraps'
,
'video-embed.js'
)
,
'youtube-embed'
:
path
.
join
(
__dirname
,
'static'
,
'src'
,
'javascripts'
,
'bootstraps'
,
'youtube-embed.js'
)
,
}
,
output
:
{
path
:
path
.
join
(
__dirname
,
'static'
,
'target'
,
'javascripts'
)
,
}
,
resolve
:
{
modules
:
[
path
.
join
(
__dirname
,
'static'
,
'src'
,
'javascripts'
)
,
path
.
join
(
__dirname
,
'static'
,
'vendor'
,
'javascripts'
)
,
'node_modules'
,
// default location, but we're overiding above, so it needs to be explicit
]
,
alias
:
{
admin
:
'projects/admin'
,
common
:
'projects/common'
,
facia
:
'projects/facia'
,
membership
:
'projects/membership'
,
commercial
:
'projects/commercial'
,
'commercial-control'
:
'projects/commercial-control'
,
journalism
:
'projects/journalism'
,
// #wp-rjs weird old aliasing from requirejs
lodash
:
'lodash-amd/compat'
,
picturefill
:
'lib/picturefill'
,
raven
:
'raven-js'
,
EventEmitter
:
'wolfy87-eventemitter'
,
videojs
:
'video.js'
,
stripe
:
'stripe/stripe.min'
,
svgs
:
path
.
join
(
__dirname
,
'static'
,
'src'
,
'inline-svgs'
)
,
'ophan/ng'
:
'ophan-tracker-js'
,
'ophan/embed'
:
'ophan-tracker-js/build/ophan.embed'
,
}
,
}
,
resolveLoader
:
{
modules
:
[
path
.
resolve
(
__dirname
,
'dev'
,
'webpack-loaders'
)
,
'node_modules'
,
]
,
}
,
module
:
{
rules
:
[
{
test
:
/
\.
j
s
$
/
,
exclude
:
/
(
n
o
d
e
_
m
o
d
u
l
e
s
|
v
e
n
d
o
r
)
/
,
loader
:
'babel-loader'
,
}
,
{
test
:
/
\.
s
v
g
$
/
,
exclude
:
/
(
n
o
d
e
_
m
o
d
u
l
e
s
)
/
,
loader
:
'svg-loader'
,
}
,
// Atoms rely on locally defined variables (see atoms/vars.scss)
// to exhibit the same styles of the underlying platform. This
// module below exposes a loader that catches requests for
// atoms's CSS and automatically swaps in values for these variables
...
require
(
'@guardian/atom-renderer/webpack/css'
)
(
{
cssVarsPath
:
path
.
join
(
__dirname
,
'static'
,
'src'
,
'stylesheets'
,
'atoms'
,
'vars.scss'
)
}
)
,
]
,
}
,
plugins
:
[
// Makes videosjs available to all modules in the videojs chunk.
// videojs plugins expect this object to be available globally,
// but it's sufficient to scope it at the chunk level
new
webpack
.
ProvidePlugin
(
{
videojs
:
'videojs'
,
}
)
,
new
CircularDependencyPlugin
(
{
// exclude detection of files based on a RegExp
exclude
:
/
n
o
d
e
_
m
o
d
u
l
e
s
/
,
// add errors to webpack instead of warnings
failOnError
:
true
,
}
)
,
]
,
externals
:
{
xhr2
:
{
}
,
}
,
}
;
Back
|
FazBrowse Home
|
New Git URL