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
  • !2818

use env variable to disable source maps

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/viankakrisna/disable-sourcemap into master Jul 19, 2017
  • Overview 9
  • Commits 3
  • Pipelines 0
  • Changes 1

Created by: viankakrisna

escape hatch for https://github.com/facebookincubator/create-react-app/issues/2555 and various request for disabling source maps on production. verified the changes using this command

REACT_APP_DISABLE_SOURCE_MAP=1 npm run build

and check build folder for the existence of source maps


Use this one for the latest changes

SOURCE_MAP=false npm run build
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/viankakrisna/disable-sourcemap