If you need @fullhuman/postcss-purgecss, then install it as well (I think you need postcss-import also). npm i --save-dev @fullhuman/postcss-purgecss postcss-import
Else, you can remove those lines in the postcss.config.js.
I think that's all the steps. Please refer to my post if necessary
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I did for a new ReactJS here: dev.to/codeprototype/accelerating-...
but since your question is for an existing app, you might want to try the following:
npm i --save tailwindcss tailwindcss-tables
//tailwindcss-tables if you want tableIn your
styles.css
, add 3 lineswebpack.config.js
then
Since
MiniCssExtractPlugin
andpostcss-loader
are required, install them:npm i --save-dev mini-css-extract-plugin postcss-loader
Create a new
npx tailwind.config.js
by running the command (generates default)npx tailwind init tailwind.config.js
Create a config file for postcss called
postcss.config.js
touch postcss.config.js
gist.githubusercontent.com/khle/cc...
If you need
@fullhuman/postcss-purgecss
, then install it as well (I think you needpostcss-import
also).npm i --save-dev @fullhuman/postcss-purgecss postcss-import
Else, you can remove those lines in the
postcss.config.js
.I think that's all the steps. Please refer to my post if necessary