Pre-processors
In this example:
pages/index.vue
uses pug as a template language and sass for styling.
nuxt.config.js
:
- registers the style resources module.
- contains a
styleResources
property to addassets/variables.scss
. - contains a
css property
to addassets/main.scss
.
package.json
shows the dependencies needed.
Learn more in the Features book in the Configuration chapter.
Loading CodeSandbox...