Separating SCSS style from Vue template

Nuxt guide logo

Separating SCSS file in Nuxt and Vue

Put the SCSS file into their own file under the same folder of the .vue template, then refer the .scss file in your Vue template like so

                                <!-- in .vue template -->
<style lang="scss" scoped src="./your-scss-file.scss"></style>
                            
Previous post How to create 404 missing page in Nuxt using Composition API
Next post Payload CMS - How to query image content from Richtext field