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
  • #4017
Closed
Open
Issue created Feb 12, 2018 by Administrator@rootContributor

autorepfixer does not respect rules

Created by: FDiskas

Is this a bug report?

YES

Did you try recovering your dependencies?

Fresh install create-react-app: 1.5.2 YARN version v1.3.2

Which terms did you search for in User Guide?

autoprefixer, css, display: grid

Environment

  1. node -v: v8.9.1
  2. npm -v: 5.6.0
  3. yarn --version (if you use Yarn): 1.5.2
  4. npm ls react-scripts (if you haven’t ejected):

Then, specify:

  1. Operating system: Ubuntu based
  2. Browser and version (if relevant):

Steps to Reproduce

(Write your steps here:)

  1. npm i -g create-react-app
  2. create-react-app autoprefixer
  3. add .demo { display: grid } to App.css file
  4. yarn build
  5. open generated css file in build directory and check .demo class content

Expected Behavior

.demo {
display: -ms-grid;
display: grid;
}

Actual Behavior

.demo{display:grid}

demo

I tried to eject and change the autoprefixer option by adding grid: true it works

Folow https://github.com/postcss/autoprefixer/issues/603#issuecomment-365015199

SO please add that option to your webpack autoprefixer config by default

Assignee
Assign to
Time tracking