I have setted up tailwind for my simple web project. I believe my setup is alright, although it doens't seem to change the styles from my HTML file. I followed the docs on how to install. DOCS: https://tailwindcss.com/docs/installation
My index.html
code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nilton SF</title>
<link rel="stylesheet" href="../tailwind/output.css">
</head>
<body>
<div>
<h1 class="text-blue-600">
Hello world!
</h1>
</div>
</body>
</html>
tailwind.config.js
file:
/** @type {import('tailwindcss').Config} */
module.exports = {
purge: ["./src/*.{html}"],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
};
This is the folder setup image:
For running my program i use:
yarn dev
This is a piece of package.json:
"scripts": {
"build": "webpack --config ./bundler/webpack.prod.js",
"dev": "webpack serve --config ./bundler/webpack.dev.js"
},