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
  • Issues
  • #1934
Closed
Open
Issue created Apr 04, 2017 by Administrator@rootContributor

CSS is not minified in prod build with master

Created by: trygveaa

Can you reproduce the problem with latest npm?

Yes

Description

When I'm building to production with the master version of create-react-app, the css is not minified. With the latest released version (v0.9.5) however, it is being minified.

Expected behavior

The css file under build/static/css/ should be minified.

Actual behavior

It is not minified.

Environment

Run these commands in the project folder and fill in their results:

  1. npm ls react-scripts (if you haven’t ejected): Running from master, see below.
  2. node -v: v7.7.3
  3. npm -v: 4.4.4

Then, specify:

  1. Operating system: Arch Linux
  2. Browser and version: Irrelevant

Reproducible Demo

I can reproduce this by running these commands:

git clone git@github.com:facebookincubator/create-react-app.git .
npm i
npm run create-react-app test-css-minify
cd test-css-minify
npm run build

And looking at the css file that is built under build/static/css/.

Assignee
Assign to
Time tracking