Update nwb to the latest version 🚀 #11
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Version 0.22.0 of nwb was just published.
The version 0.22.0 is not covered by your current version range.
If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
It might be worth looking into these changes and trying to get this project onto the latest version of nwb.
If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.
Release Notes
v0.22.0Breaking Changes
nwb.config.js, some of the nwb config you depended on may have changed, and the options Webpack accepts may have changed [#409]modeoption is now set to activate Webpack 4's new defaults, which removes the need for a bunch of manual configuration nwb was doing:ModuleConcatenationPluginis now automatically enabled inproductionmode instead of being explicitly configured, so nwb'swebpack.hoistingconfig has been removed.NamedModulesPluginis now automatically used indevelopmentmode instead of being explicitly configured.productionmode with minimization disabled, as the newdevelopmentmode defaults are unsuitable for code which will be published to npm.optimizationoptions are now used for certain pieces of configuration:optimization.noEmitOnErrorsis used instead ofNoEmitOnErrorsPluginto prevent emission of assets when using Hot Module Replacement.optimization.minimize/optimization.minimizerinstead of just addingUglifyJsPlugindirectly toplugins.CommonsChunkPluginhas been removed in Webpack 4 -optimization.runtimeChunkis now configured to create aruntimechunk (which replaces the oldmanifestchunk) andoptimization.splitChunksis configured to create avendorbundle.ExtractTextPluginwithMiniCssExtractPlugin:webpack.extractTextconfig withwebpack.extractCSSconfig - this is not backwards-compatible, as plugin options differ.performanceoption size warnings have been disabled (for now).nwb new inferno-appnow asks if you want to installinferno-compatas it's no longer a single dependency, defaulting to not installing it.nwb new preact-appnow asks if you want to installpreact-compat, defaulting to not installing it.webpack.compat.enzyme,webpack.compat.sinonandwebpack.style = 'old'config.Known Issues
.mjsfiles to npm, which is breakinginferno-*packages with Webpack 4, so e.g.inferno-compatwon't work if you want to reuse React components.Added
-f/--forceflag tonwb newto accept defaults and skip questions.Changed
index.htmlserving can now be configured with dot arguments - e.g. pass--fallback.disableDotRuleif you need to use dots in your path when using the HTML5 History API.--no-polyfillcan now be used to disable default polyfills for app projects as well as quick commands.Dependencies
url()sInternal
StatusPluginandInlineRuntimePluginto use the Use the new Webpack 4.hooksplugin API.Docs
publicPathdocs, as Webpack'soutput.publicPathconfig can't benull[#432] [stephenwf]Commits
The new version differs by 29 commits.
cbba39eRelease v0.22.0 as nwb@nextf0f9412Doc cleanupe4791d6Use a temporary scoped version of NpmInstallPlugin which supports Webpack 4245dbe9Allow dev server fallback serving to be configured with dot argumentsebdcae4Add --no-polyfill support to app commands6b7948dAdded inferno-* .mjs publishing to Known Issues6e271ebFixed webpack.debug - beautify is no longer a top-level option in UglifyJsPluginb741485Use createComponentVNode for exported components in the Inferno render shim5692966Update CHANGES for the uppgrade to Webpack 4 & dropping Node.js 4 supportc21d9e2Update lint confige3a91feUpdate uglify-webpack-plugin558e36bUse production mode for all UMD builds16849efUpgrade to Webpack 4a218457Re-disable inferno test75f51b9Update dependenciesThere are 29 commits in total.
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot 🌴