webpack Reference

Last Updated on March 4, 2020 by Neil Murray

DEVELOPMENT #

webpack #

webpack Tools #

Code Splitting #

Impress Your Friends With Code Splitting in React
Vendor and code splitting in webpack 2
Straightforward code splitting with React and Webpack
Advanced WebPack Part 2 – Code Splitting
Formidable Playbook – Code Splitting

CommonsChunkPlugin #

Replaced by SplitChunksPlugin in webpack v4

Create React App #

Avoid ejecting Create React App #

LEARN #

Tutorials #

Articles #

Versatile Webpack configurations for your React application
Using Webpack with Create React App
Fast and modern front-end setup with webpack, react etc.
Modern approach of JavaScript bundling with Webpack
webpack – The Confusing Parts
Using React with Webpack

Slides #

Better Webpack Builds

Repositories #

react-wp-scripts – a wrapper for create-react-app’s react-scripts to suit WordPress environment

This project solves two issues that prevent seamless usage of Webpack projects in WordPress themes and plugins:

  1. WordPress doesn’t necessarily know where to look for the output bundles.
  2. WordPress cannot access the development server due to cross-origin restrictions.

create-guten-block – a zero-configuration #0CJS developer toolkit for building WordPress Gutenberg block plugins

Why create-guten-block?

Well, it’s really hard to configure things like Webpack, React, ES 6/7/8/Next, ESLint, Babel, etc. before you even start writing a Hello World gutenberg block. Then there’s the fact that you have to maintain and constantly update your configuration with all the new tools and growth in the JavaScript community.

create-guten-block hides all this configuration away in an optimized package that we call cgb-scripts. This package is the only dependency in your projects. We keep cgb-scripts up to date while you go ahead and create the next best WordPress themes and plugins.

Peer Dependencies

Peer Dependencies – no longer necessary