I am trying to set up tailwind in my react frontend in my motoko project but nothing seems to work.
The is the tailwind.config.js
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/**/*.{html,js,jsx,ts,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}
postcss.config:
module.exports = {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
],
}
webpack.config.js react configuration:
module: {
rules: [
{ test: /\.(ts|tsx|jsx)$/, loader: "ts-loader" },
{ test: /\.css$/, use: ["style-loader", "css-loader", "postcss-loader"] },
],
},
In my main.css I just did this:
@tailwind base;
@tailwind components;
@tailwind utilities;
Thats pretty much all the setup I have and its not working.