TypeError: Invalid PostCSS Plugin found at: plugins[5]
balex25 opened this issue · 1 comments
balex25 commented
Hi,
I try to install this plugin with underscoretw.com (WordPress theme on tailwind), but it seems I am getting something wrong.
postcss.config.js
module.exports = {
plugins: [
require( 'postcss-import-ext-glob' ),
require( 'postcss-import' ),
require( 'postcss-simple-vars' )( { variables: selectors } ),
require( 'tailwindcss/nesting' ),
require( 'tailwindcss' ),
new MangleCssClassPlugin({
classNameRegExp: '((hover|focus|active|disabled|visited|first|last|odd|even|group-hover|focus-within|xs|sm|md|lg|xl)[\\\\]*:)*tw-[a-zA-Z0-9_-]*([\\\\]*\/[0-9]*)?',
ignorePrefixRegExp: '((hover|focus|active|disabled|visited|first|last|odd|even|group-hover|focus-within|xs|sm|md||lg|xl)[\\\\]*:)*',
log: true,
}),
],
};
When I run the build, I get TypeError: Invalid PostCSS Plugin found at: plugins[5].
Any help will be appreciated, thanks!