Pre-processors
Configuration your application to use pug and sass with style resources to easily add variables to all components.
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 Sandbox...
Edit this page on GitHub
Updated at Mon, Jul 12, 2021