0

I have a Vue Js project I'm building and created it with CLI3 but I'm not sure where I should be placing my global CSS file. There are a few answers out there but it's for older versions with folders that aren't there anymore.

Where should a css file go and where should I be importing it?

1
  • Place .css file anywhere you want and then in your main.js you can import it with import '@/path/to/file/my-style.css'. Read more about @ here Commented Mar 6, 2019 at 2:00

1 Answer 1

1

Put it in app.js, and not in a scoped script element.
That is how the demo adds global CSS.

If it gets too big and unmanageable, import css files in app.js instead.

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

Comments

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.