Skip to content

Commit

Permalink
Bump webpack (rjsf-team#1040)
Browse files Browse the repository at this point in the history
* An empty string is no longer required with webpack v3

See https://webpack.js.org/migrate/3/#resolve-extensions.

* Update loaders

module.loaders is now module.rules.

https://webpack.js.org/migrate/3/#module-loaders-is-now-module-rules

Chaining loaders is no longer done using !. We only do this in one
place (style!css).

https://webpack.js.org/migrate/3/#chaining-loaders

It's no longer allowed to omit -loader.

https://webpack.js.org/migrate/3/#automatic-loader-module-name-extension-removed

We no longer need json-loader.

https://webpack.js.org/migrate/3/#json-loader-is-not-required-anymore

* ExtractTextPlugin needs a version bump

https://webpack.js.org/migrate/3/#new-extracttextplugin-options-

* Output path needs to be absolute

* NoErrorsPlugin is deprecated

* Actually upgrade webpack version

* Bump versions to webpack v4

* Move ExtractTextWebpackPlugin to MiniCssExtractPlugin for webpack v4

* Add a "mode" to each config

https://webpack.js.org/migrate/4/#mode

* This doesn't seem to be necessary any more

The documentation seems to say this is the default during prod, but I
haven't been able to make it emit any bad assets in dev either.

* This is the default in "production" mode
  • Loading branch information
glasserc authored Oct 26, 2018
1 parent e2e7120 commit b6ae4f4
Show file tree
Hide file tree
Showing 5 changed files with 3,277 additions and 453 deletions.
Loading

0 comments on commit b6ae4f4

Please sign in to comment.