DEV Community

Discussion on: How to use Tailwind with Create React App and PostCSS with no hassle

Collapse
 
lucasousi profile image
Lucas Simões

Great!

I am using react-app-rewired and its works with:

module.exports = {
webpack: (config) => {
// Override config of webpack CRA
const overrideConfig = override(
addPostcssPlugins([
require('tailwindcss')('./tailwind.config.js'),
require('autoprefixer'),
]),
addWebpackAlias(nxPathAlias),
)(config);
return config;
},
};

Collapse
 
sujitykulkarni profile image
Sujit Kulkarni

Hey mate, what is nxPathAlias here?