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

Improve readability of webpack config

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/uniqueumang/simplify-web-pack-config into master Oct 14, 2020
  • Overview 4
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: uniqueumang

Improved readability of webpack.config by removing redundant code & hence making it simpler to read.

There should be no change in overall output with current master. Following have been locally tested:

  1. In production config, code generated is minified (see screenshots). Displaying Production output remains unchanged & is minified Index.html minified
  2. In development environment, code generated is not minifed. Can debug Output generated is not minified or compressed Index.html is unminified & have comments like in template index.html
  3. SourceMap is enabled in Prod & dev environment by default. dev_prod_SourcemapRequested
  4. By setting GENERATE_SOURCEMAP to false, causes sourcemap not be in generated in prod environment but continues to be generated in dev environment. PRODUCTION_NoSourceMapRequested
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/uniqueumang/simplify-web-pack-config