3

I'd like to be able to import the whole css file that was generated from Vue components to css/app.[hash].css as raw text from js code.

I.e. I would like to do something like

const cssAsRawText = await import("!raw-loader!vue-style-loader!@/App.vue");

How is this possible to be done?

I'm using Vue 3 with vue-cli.

Use case: I would like to export static HTML with the same style sheet that is used in Vue app.

0

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.