vuetify-module icon indicating copy to clipboard operation
vuetify-module copied to clipboard

Using defaultAssets with the OptionsPath doesn't work

Open ianfortier opened this issue 6 years ago • 3 comments

Module version "@nuxtjs/vuetify": "^1.9.1",

Describe the bug When you are using a custom optionsPath the defaultAssets isn't working. I tried to change the font-family as described in the docs by setting the defaultAssets.font.family: "Raleway", but the font wasn't changing... I figure out that you need to set the defaultAssets in the nuxt.config directly otherwise the option won't work.

To Reproduce Set the defaultAssets in a optionsPath file

To Fixed Set the defaultAssets in the nuxt.config directly

Expected behavior Being able to set the defaultAssets in the custom option file

ianfortier avatar Jan 08 '20 16:01 ianfortier

@ianfortier It's specified in documentation that optionsPath is for Vuetify (the framework) options : https://github.com/nuxt-community/vuetify-module#optionspath

defaultAssets is a module option, not a framework option, so it should be kept in nuxt.config.js.

Options in the file specified by optionsPath should only contains Framework options like theme, breakpoint, icons, ...

kevinmarrec avatar Jan 10 '20 11:01 kevinmarrec

Make sense! Thank you!

ianfortier avatar Jan 10 '20 14:01 ianfortier

Documentation says to set defaultAssets: false

in your nuxt.config.js: buildModules: [

['@nuxtjs/vuetify', { defaultAssets: false, }]

PJLindsay avatar Mar 24 '20 20:03 PJLindsay