.vscode
docs
ext-src
public
resources
scripts
build-non-split.js
src
.editorconfig
.env
.gitignore
.vscodeignore
CHANGELOG.md
LICENSE
README.md
package-lock.json
package.json
tsconfig.extension.json
tsconfig.json
tslint.json
17 lines
405 B
JavaScript
Executable File
17 lines
405 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
// Disables code splitting into chunks
|
|
// See https://github.com/facebook/create-react-app/issues/5306#issuecomment-433425838
|
|
|
|
const rewire = require("rewire");
|
|
const defaults = rewire("react-scripts/scripts/build.js");
|
|
let config = defaults.__get__("config");
|
|
|
|
config.optimization.splitChunks = {
|
|
cacheGroups: {
|
|
default: false
|
|
}
|
|
};
|
|
|
|
config.optimization.runtimeChunk = false;
|