Please check Minimal Electron, React and Webpack boilerplate for details. All credit goes to Alex Devero for awesome work.
git clone https://github.com/Sanan4li/React-Electron-TailwindCSS-Boilerplate.git
npm install
or
yarn install
npm run start
or
yarn start
npm run build-css
Adding Custom Styles by adding styles into src/styles/index.css
.
As you know TailwindCSS 2.2 version supports JIT mode. You can enable it by uncommenting the line # 2 in tailwind.config.js
. After enabling JIT mode you have to run a separate terminal
npm run watch-css
This command will run a watcher waiting for you to change code and it will build css classes based on your code.