Created
April 22, 2020 18:46
-
-
Save hindmost/6087a847a3bf2607632a478f317adc43 to your computer and use it in GitHub Desktop.
cra-browserext-boilerplate: webpack.config.js structure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
const paths = require('./paths'); | |
... | |
module.exports = function(webpackEnv) { | |
... | |
return { | |
... | |
entry: [ | |
isEnvDevelopment && | |
require.resolve('react-dev-utils/webpackHotDevClient'), | |
paths.appIndexJs, | |
].filter(Boolean), | |
... | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment