We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Ideally, components should be able to declare their own style with no need for it to exist in nuxt.config.js. For example:
nuxt.config.js
<template> <div> <nuxt-img :src="testImage" :image-style="imageStyle" alt="Never forget alt tags!" /> </div> </template> <script> export default { data () { return { testImage: '/test.png', imageStyle: { macros: [ 'scaleAndCrop|160|90', ], }, } } } </script>
This would make components much more reusable across projects.