You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to obfuscate the classnames in my HTML. After researching, it seems you can do it via webpack with the code below. I understand it's best to configure webpack via CRACO (Create React App Configuration Override). Anyone know how to edit CRACO config to apply the webpack settings below?
// craco.config.jsmodule.exports={style: {postcss: {plugins: [require('tailwindcss'),require('autoprefixer'),],},},webpack: {// how does the code above go in here...?}}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to obfuscate the classnames in my HTML. After researching, it seems you can do it via webpack with the code below. I understand it's best to configure webpack via CRACO (Create React App Configuration Override). Anyone know how to edit CRACO config to apply the webpack settings below?
The code I'd like to adjust in webpack.config.js:
As per this article
My current craco config file:
Beta Was this translation helpful? Give feedback.
All reactions