UNPKG
@gridonic/webpack
Version:
latest (1.3.1)
1.3.1
1.3.0
1.2.2
1.2.1
1.2.0
1.1.0
1.0.0
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.0
0.2.2
0.2.1
0.2.0
0.1.0
Our webpack configuration.
github.com/gridonic/webpack
gridonic/webpack
@gridonic/webpack
/
src
/
helpers
/
setIfUnknown.js
12 lines
(9 loc)
•
291 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
// @see https://github.com/developit/dlv
const
get =
require
(
'dlv'
);
// @see https://github.com/lukeed/dset
const
set =
require
(
'dset'
);
module
.
exports
=
(
webpackOptions, key, value
) =>
{
if
(
get
(webpackOptions, key,
null
) ===
null
) {
set
(webpackOptions, key, value); } };