Make WordPress Core

Opened 3 years ago

Last modified 4 days ago

#52543 accepted defect (bug)

Twenty Twenty: Vendor prefix build steps are missing configuration

Reported by: ryelle's profile ryelle Owned by: karmatosed's profile karmatosed
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: has-patch reporter-feedback
Focuses: Cc:


When building Twenty Twenty, there are two steps that run over CSS files, a vendor prefixer and RTL conversion. The vendor prefixer uses postcss, but there is no postcss.config.js file. It looks like this wasn't brought over from github when the theme was initially committed. When build is run currently, we can see an error:

You did not set any plugins, parser, or stringifier. Right now, PostCSS does nothing. Pick plugins for your case on and use them in postcss.config.js.

We should either remove the postcss commands from build (if so, we can also remove the dependencies), or add in a postcss config.

Attachments (1)

52543.diff (574 bytes) - added by ryelle 3 years ago.
Basic postcss + autoprefixer config in package.json

Download all attachments as: .zip

Change History (5)

3 years ago

Basic postcss + autoprefixer config in package.json

#1 @karmatosed
7 weeks ago

  • Keywords has-patch added

#2 @karmatosed
10 days ago

  • Owner set to karmatosed
  • Status changed from new to accepted

This feels like an easy patch to get in as it helps the compiling and wasn't brought over from git. I am going to assign to myself to test and see about bring on.

#3 @karmatosed
10 days ago

  • Keywords reporter-feedback added

Looking at running this it changes the stylesheets by removing vendor prefixes on compiling. As this has been a while, I am going to check this is desirable before commit.

What I see is it removes on compiling with this patch:

-	-moz-user-select: none;
-	-ms-user-select: none;

#4 @karmatosed
4 days ago

  • Milestone changed from Awaiting Review to Future Release
Note: See TracTickets for help on using tickets.