A toolkit for React, Preact, Inferno & vanilla JS apps, React libraries and other npm modules for the web, with no configuration (until you need it)
nwb.config.js
Config Changeswebpack.compat.enzyme
flag for Enzyme v2 compatibility settings. Upgrade to Enzyme v3 when you can, which supports React all the way back to v0.13.
'createClass'
and 'createReactClass'
to the factory function names React Transform looks for, so React component hot reloading will work for apps using create-react-class
, imported as one of those names.webpack.compat.enzyme
config in v0.19.0, as it only applied while the version numbers of published React packages were out of sync. The compatibility settings assume Enzyme v2 and React >= v15.5.style-loader
's new hmr
option is set to false
when creating builds to prevent inclusion of its HMR code.render()
functions in quick commands, as this won't work with ES modules builds (which are used by default in Webpack v3). This affected the current version of Preact at the time of writing.
render()
with quick commands, you must now handle providing the target DOM node too - document.getElementById('app')
is available in the default HTML template.babel.env
config to pass additional options for babel-preset-env
.webpack.compat
for recent versions of React 15.babel-preset-env
instead of deprecated babel-preset-es201X
presets [#375]beautify: true
for webpack.debug
output so code split bundles are readable.React.PureComponent
to the list of default super classeswebpack.extractText
config to false
to disable extraction of stylesheets in builds [#343]webpack.extractText
config.Backported fixes from 0.18:
@import
in CSS by adding ident
back to postcss-loader
config [#311]webpack.styles
rule.