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

Add optional support for custom postcss plugins

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/dustinsoftware/postcss-config into master Feb 13, 2020
  • Overview 10
  • Commits 1
  • Pipelines 0
  • Changes 2

Created by: dustinsoftware

This is accomplished via postcss.config.js, which will be searched for if plugins is not specified as an option to postcss-loader

Postcss plugins are required to use Tailwind CSS, a popular styling framework which leverages a custom module import syntax.

This overlaps slightly with #8331, but takes a non-breaking change approach.

How I tested this:

  • Created a sample repo with a postcss config and used environment variables in the scripts
  • Ran yarn link react-scripts to link the changes
  • Confirmed that dropping the flag reverts to the default behavior, which uses the preset list of plugins in CRA's internal config
Screen Shot 2020-02-13 at 00 33 35
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/dustinsoftware/postcss-config