UNPKG
gatsby-plugin-nerv
Version:
latest (0.0.1)
0.0.1
A Gatsby plugin which replaces React with Nerv
gatsby-plugin-nerv
/
gatsby-node.js
15 lines
(12 loc)
•
271 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use strict'
;
exports
.
modifyWebpackConfig
=
function
(
_ref
) {
var
config = _ref.
config
, stage = _ref.
stage
;
if
(stage !==
'develop-html'
) { config.
_config
.
resolve
.
alias
= {
react
:
'nervjs'
,
'react-dom'
:
'nervjs'
}; }
return
config; };