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
styleResourcesproperty to addassets/variables.scss. -
contains a
css propertyto 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