0

I am trying to generate css code by compiling tailwind base, components and utilities to develop Shopify theme.

Below is my files.

tailwind.config.json

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

application.css

@tailwind base;
@tailwind components;
@tailwind utilities;

Executing below code:

npx tailwindcss build -i  src/styles/application.css -o src/styles/tailwind.css

Screenshot as Below

terminal screenshot after running above code

Please let me know for more information on this issue.

Thanks in Advance.

1
  • What is your file structure? Where is tailwind config and where are the files? Commented Feb 25, 2022 at 9:10

1 Answer 1

0

Are your HTML and JavaScript files in src folder?
Make sure your to separate your tailwindcss file and html js for better code structure understanding.

module.exports = {
  content: ["./the folder where your html,js files exits/**/*.{html,js}"],
  theme: {
    extend: {},
  },
  plugins: [],
}
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for your input. I figured the way by pointing the folders correctly.

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.