During the development of a Nuxt application integrated with WordPress, I encountered an issue while trying to import custom CSS from the WordPress API.
I am seeking guidance on how to incorporate custom CSS into a template effectively?
<template>
<div class="container">
<style>
{{ content.custom_css }}
</style>
<div class="wordvue mt-5" v-html="content.rendered"></div>
</div>
</template>
Although this method works flawlessly in development mode, the style tag gets stripped off in production mode causing a hiccup. Are there any suggestions or solutions to rectify this situation?