FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
msgpack-javascript/example/webpack-example/webpack.config.ts at main · msgpack/msgpack-javascript · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
msgpack
/
msgpack-javascript
Public
Notifications
You must be signed in to change notification settings
Fork
180
Star
1.6k
Code
Issues
18
Pull requests
6
Discussions
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
msgpack-javascript
/
example
/
webpack-example
/
webpack.config.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
61 lines (53 loc) · 1.32 KB
Breadcrumbs
msgpack-javascript
/
example
/
webpack-example
/
webpack.config.ts
Copy path
File metadata and controls
61 lines (53 loc) · 1.32 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
const
path
=
require
(
"path"
)
;
const
webpack
=
require
(
"webpack"
)
;
const
_
=
require
(
"lodash"
)
;
const
config
=
{
mode
:
"production"
,
entry
:
"./index.ts"
,
output
:
{
path
:
path
.
resolve
(
__dirname
,
"dist"
)
,
filename
:
undefined
,
// will be set later
}
,
resolve
:
{
extensions
:
[
".ts"
,
".tsx"
,
".mjs"
,
".js"
,
".json"
,
".wasm"
]
,
}
,
module
:
{
rules
:
[
{
test
:
/
\.
t
s
x
?
$
/
,
loader
:
"ts-loader"
,
options
:
{
configFile
:
"tsconfig.json"
,
}
,
}
,
]
,
}
,
plugins
:
[
new
webpack
.
DefinePlugin
(
{
// eslint-disable-next-line @typescript-eslint/naming-convention
"process.env.TEXT_ENCODING"
:
"undefined"
,
// eslint-disable-next-line @typescript-eslint/naming-convention
"process.env.TEXT_DECODER"
:
"undefined"
,
}
)
,
]
,
optimization
:
{
noEmitOnErrors
:
true
,
minimize
:
false
,
}
,
// We don't need NodeJS stuff on browsers!
// https://webpack.js.org/configuration/node/
node
:
false
,
devtool
:
"source-map"
,
}
;
module
.
exports
=
[
(
(
config
)
=>
{
config
.
output
.
filename
=
"bundle.min.js"
;
config
.
optimization
.
minimize
=
true
;
return
config
;
}
)
(
_
.
cloneDeep
(
config
)
)
,
(
(
config
)
=>
{
config
.
output
.
filename
=
"bundle.js"
;
config
.
optimization
.
minimize
=
false
;
return
config
;
}
)
(
_
.
cloneDeep
(
config
)
)
,
]
;
Back
|
FazBrowse Home
|
New Git URL