mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 14:43:08 +03:00
fa43a0236b
refs https://github.com/TryGhost/Toolbox/issues/594 - this is the first of a set of commits to move our "apps" into the `apps/` folder, so we don't mix Ghost core and standalone apps
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;
|
|
});
|