0

I have installed tailwindcss using PostCSS. However it's not taking effect when i try to use it to style my html.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="/dist/output.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
    <title>Home Page</title>
</head>

Here is the output in tailwind.config.js:

module.exports = {
  content: ["./src/**/*.{html,js}"],
  theme: {
    extend: {},
  },
  plugins: [],
}

1 Answer 1

1

i changed the path to ../dist/output.css

<link href="../dist/output.css" rel="stylesheet"> 

it is not properly pointing to the right output.css file location

Sign up to request clarification or add additional context in comments.

2 Comments

Did you manage to solve your own issue? If yes, then please give the "tick" to accept your own answer.
i dont have rights to tick the answer as accept.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.