Skip to content

Instantly share code, notes, and snippets.

View simpixelated's full-sized avatar
🏠
Working from home

Jordan Kohl simpixelated

🏠
Working from home
View GitHub Profile
@simpixelated
simpixelated / build-non-split.js
Last active March 9, 2021 11:26
Disable Code Splitting (and caching) In Create React App
const rewire = require('rewire');
const defaults = rewire('react-scripts/scripts/build.js');
let config = defaults.__get__('config');
config.optimization.splitChunks = {
cacheGroups: {
default: false,
},
};