Open jorgeuos opened 1 year ago
Hey, thanks for reaching out.
Could you provide a minimal reproducible example? Some temporary git repository would be great.
Sure!
I just installed everything:
git clone git@github.com:sszczep/chrome-extension-webpack.git
cd chrome-extension-webpack
npm install
npm run start
# Stop obviosly: ctrl+c
npm install -D postcss-import
npm run start
But sure, I haven't even created a new repo yet. But I will if you want me to.
Regards, Jorge
Hi again!
I got it to work!
I feel really stupid now, but mainly I just followed a TailwindCSS guide and generated the default tailwind.config.js
file and I added a postcss.config.js
file aswell.
Renaming the extension of these files to .cjs
seems to fix the issue.
I also tried different things before I got it to work.
But I made a fork of your repo, you can check it out if you want. I can even create a PR if you'd like that. But perhaps TailwindCSS should be optional. Perhaps something I can fix over the weekend or something.
Here's the diff.
Oh, and here is a detailed doc of My tweaks to make TailwindCSS work.
First of all!
Really COOL boilerplate for getting started with Chrome extension development.
I was struggling with getting chrome as a global variable. And ChatGPT just gave me a headache with it's hallucinations.
Your repo, on the other hand, is looking really promising! Thank you!
Now to my issue:
Everything was working as expected until I tried to add TailwindCSS and got this error.
Do you have any clue on how to fix the issue. I'll continue debugging tomorrow.