7a124a6901
refs https://github.com/TryGhost/Toolbox/issues/594 - we're moving all the standalone apps to a separate folder to keep them out of the core code and easier to find
15 lines
409 B
JavaScript
15 lines
409 B
JavaScript
const rewire = require('rewire');
|
|
const defaults = rewire('react-scripts/scripts/start.js');
|
|
let configFactory = defaults.__get__('configFactory');
|
|
|
|
defaults.__set__('configFactory', (env) => {
|
|
const config = configFactory(env);
|
|
config.optimization.splitChunks = {
|
|
cacheGroups: {
|
|
default: false
|
|
}
|
|
};
|
|
config.optimization.runtimeChunk = false;
|
|
return config;
|
|
});
|