Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !12375

Overrides

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/jeroenwienk/overrides into main 3 years ago
  • Overview 1
  • Commits 5
  • Pipelines 0
  • Changes 2

Created by: jeroenwienk

Compare
  • main (base)

and
  • latest version
    505a1c41
    5 commits, 2 years ago

2 files
+ 24
- 8

    Preferences

    File browser
    Compare changes
packages/re‎act-scripts‎
con‎fig‎
webpack.‎config.js‎ +18 -3
packag‎e.json‎ +6 -5
packages/react-scripts/config/webpack.config.js
+ 18
- 3
  • View file @ 505a1c41


@@ -256,6 +256,9 @@ module.exports = function (webpackEnv) {
@@ -256,6 +256,9 @@ module.exports = function (webpackEnv) {
level: 'none',
level: 'none',
},
},
optimization: {
optimization: {
 
splitChunks: {
 
chunks: 'all',
 
},
minimize: isEnvProduction,
minimize: isEnvProduction,
minimizer: [
minimizer: [
// This is only used in production mode
// This is only used in production mode
@@ -373,9 +376,6 @@ module.exports = function (webpackEnv) {
@@ -373,9 +376,6 @@ module.exports = function (webpackEnv) {
},
},
},
},
},
},
// "url" loader works like "file" loader except that it embeds assets
// smaller than specified limit in bytes as data URLs to avoid requests.
// A missing `test` is equivalent to a match.
{
{
test: [/\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/],
test: [/\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/],
type: 'asset',
type: 'asset',
@@ -385,8 +385,12 @@ module.exports = function (webpackEnv) {
@@ -385,8 +385,12 @@ module.exports = function (webpackEnv) {
},
},
},
},
},
},
 
// "url" loader works like "file" loader except that it embeds assets
 
// smaller than specified limit in bytes as data URLs to avoid requests.
 
// A missing `test` is equivalent to a match.
{
{
test: /\.svg$/,
test: /\.svg$/,
 
resourceQuery: /component/,
use: [
use: [
{
{
loader: require.resolve('@svgr/webpack'),
loader: require.resolve('@svgr/webpack'),
@@ -411,6 +415,16 @@ module.exports = function (webpackEnv) {
@@ -411,6 +415,16 @@ module.exports = function (webpackEnv) {
and: [/\.(ts|tsx|js|jsx|md|mdx)$/],
and: [/\.(ts|tsx|js|jsx|md|mdx)$/],
},
},
},
},
 
// include svg
 
{
 
test: [/\.svg$/],
 
type: 'asset',
 
parser: {
 
dataUrlCondition: {
 
maxSize: imageInlineSizeLimit,
 
},
 
},
 
},
// Process application JS with Babel.
// Process application JS with Babel.
// The preset includes JSX, Flow, TypeScript, and some ESnext features.
// The preset includes JSX, Flow, TypeScript, and some ESnext features.
{
{
@@ -453,6 +467,7 @@ module.exports = function (webpackEnv) {
@@ -453,6 +467,7 @@ module.exports = function (webpackEnv) {
isEnvDevelopment &&
isEnvDevelopment &&
shouldUseReactRefresh &&
shouldUseReactRefresh &&
require.resolve('react-refresh/babel'),
require.resolve('react-refresh/babel'),
 
[require.resolve('@emotion/babel-plugin')],
].filter(Boolean),
].filter(Boolean),
// This is a feature of `babel-loader` for webpack (not Babel itself).
// This is a feature of `babel-loader` for webpack (not Babel itself).
// It enables caching results in ./node_modules/.cache/babel-loader/
// It enables caching results in ./node_modules/.cache/babel-loader/
packages/react-scripts/package.json
+ 6
- 5
  • View file @ 505a1c41


{
{
"name": "react-scripts",
"name": "@jwienk/react-scripts",
"version": "5.0.1",
"version": "5.0.2",
"description": "Configuration and scripts for Create React App.",
"description": "Configuration and scripts for Create React App.",
"repository": {
"repository": {
"type": "git",
"type": "git",
"url": "https://github.com/facebook/create-react-app.git",
"url": "https://github.com/jeroenwienk/create-react-app.git",
"directory": "packages/react-scripts"
"directory": "packages/react-scripts"
},
},
"license": "MIT",
"license": "MIT",
@@ -12,7 +12,7 @@
@@ -12,7 +12,7 @@
"node": ">=14.0.0"
"node": ">=14.0.0"
},
},
"bugs": {
"bugs": {
"url": "https://github.com/facebook/create-react-app/issues"
"url": "https://github.com/jeroenwienk/create-react-app/issues"
},
},
"files": [
"files": [
"bin",
"bin",
@@ -29,8 +29,9 @@
@@ -29,8 +29,9 @@
"types": "./lib/react-app.d.ts",
"types": "./lib/react-app.d.ts",
"dependencies": {
"dependencies": {
"@babel/core": "^7.16.0",
"@babel/core": "^7.16.0",
 
"@emotion/babel-plugin": "^11.7.2",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
"@svgr/webpack": "^5.5.0",
"@svgr/webpack": "^6.2.1",
"babel-jest": "^27.4.2",
"babel-jest": "^27.4.2",
"babel-loader": "^8.2.3",
"babel-loader": "^8.2.3",
"babel-plugin-named-asset-import": "^0.3.8",
"babel-plugin-named-asset-import": "^0.3.8",
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
2
CLA Signed tag: underlying tools
2
CLA Signed tag: underlying tools
    Assign labels
  • Manage project labels

Milestone
3.3
3.3
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
0
0 participants
Reference: facebook/create-react-app!7986
Source branch: github/fork/jeroenwienk/overrides

Menu

Explore Projects Groups Snippets