1

I want to use an external .css file but It does not work. I have tried link rel="stylesheet" and @importing css in style tags but it does not work

asked Jun 7, 2022 at 20:51
1
  • for importing css file to your nuxt app open yout nuxt.config.js file and in css section add your css files like: ``` css: ['~layouts/global.css']``` Commented Jun 8, 2022 at 6:56

1 Answer 1

0

for importing css file to your nuxt app open yout nuxt.config.js file and in css section add your css files like: css: ['~layouts/global.css']Ali Hosseini

answered Jun 8, 2022 at 22:35
Sign up to request clarification or add additional context in comments.

3 Comments

Hi @garbg - if a question was answered, please just use the "Answered" flag next to the correct answer instead of posting another "answer" :)
There is no way to set a comment as an answer though
Ohh, sorry @Garbg - I didn't see that in the review queue. Instead, you could add the answer from the comment to your "own" answer, or (even better) tell (in this case) ali hosseini to move the comment :)

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.