Skip to content
GitLab
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
  • !10224

added ability to customize localIdentName without ejecting

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/anatolzak/master into master Dec 09, 2020
  • Overview 3
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: anatolzak

I added the ability to customize the css/sass localIdentName without the need to eject.

I always eject my projects simply because I only want to customize localIdentName, which seems unnecessary to me. So I fixed it with this pull request :)

Now, you can simply add the variable LOCAL_IDENT_NAME to a .env file to customize the localIdentName.

Here is an example of my .env file:

LOCAL_IDENT_NAME=[hash:base64:5]

So now my css classes look like this:

._3iokT {
    font-weight: 500;
    font-size: 15px;
}

instead of like this:

.Card_Title__2DIe2 {
    font-weight: 500;
    font-size: 15px;
}

This also allows to reduce the css and js file bundle since we can make the css classes shorter.

All of this is possible now without needing to eject!

I will greatly appreciate if you consider this pull request! Let me know if you have any questions!

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/anatolzak/master