This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.optimization = { | |
minimizer: [ | |
new UglifyJsPlugin({ | |
parallel: true, | |
sourceMap: true, | |
}), | |
], | |
splitChunks: { | |
chunks: 'initial', | |
cacheGroups: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.optimization = { | |
minimizer: [ | |
new UglifyJsPlugin({ | |
parallel: true, | |
sourceMap: true, | |
}), | |
], | |
splitChunks: { | |
chunks: 'initial', | |
cacheGroups: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
import * as React from 'react'; | |
import {asyncComponent} from 'react-async-component'; | |
export const loaderMaker = (bgColor: string = 'transparent') => () => ( | |
<div style={{position: 'absolute', width: '100%', height: '100%', backgroundColor: bgColor}} /> | |
); | |
const MAX_RETRIES = 3; | |
const STARTING_BACKOFF = 500; |