sndyuk/mangle-css-class-webpack-plugin

Tailwind and gatsby?

mtgeee opened this issue · 0 comments

Not sure if there is a way to do it, but if there is, I've tried this so far: `const MangleCssClassPlugin = require("mangle-css-class-webpack-plugin")

exports.onCreateWebpackConfig = ({ plugins }) => {
plugins: [
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,
}),
]
}
` in the gatsby-node.js file, not sure what's wrong.