buefy / nuxt-buefy

Nuxt Buefy
MIT License
223 stars 32 forks source link

This is a lie #7

Closed Kuchiriel closed 5 years ago

Kuchiriel commented 6 years ago

Usage { modules: [ // Simple usage 'nuxt-buefy',

['nuxt-buefy', { /* buefy options */ }]

] }

It isn't that simple, and this repo is the proof.

anteriovieira commented 6 years ago

Hi @Kuchiriel , I did not quite understand your doubt, could you rephrase the question?

Kuchiriel commented 6 years ago

Hi @anteriovieira , It doesn't work out of the box, you have to @import '~/node_modules/buefy/lib/buefy.min.css' to make it work. There is no difference using nuxt-buefy or buefy packages at all.

anteriovieira commented 6 years ago

Hi @anteriovieira , It doesn't work out of the box, you have to @import ...

Should be working, the css is automatically added according to implementation https://github.com/buefy/nuxt-buefy/blob/master/lib/module.js#L21

I'll do some testing later, if you have any progress let me know.

Kuchiriel commented 6 years ago

No progress, I am justing using bulma now.

nuxt.config.js modules: [ // provide path to the file with resources ['nuxt-sass-resources-loader', './assets/main.scss'] ],

main.scss @import "~bulma/sass/navbar.sass

damien-biasotto commented 6 years ago

@Kuchiriel , Well I just followed the README.md, added only nuxt-buefy added to modules section of the nuxt.config.js file and it seems to work out of the box.

Kuchiriel commented 6 years ago

@damien-biasotto You cloned the repo or started from scratch?

damien-biasotto commented 6 years ago

Sorry @Kuchiriel for the delay, I totally missed the notificiation.

I am not sure what you're implying by started from scratch but here what I've done :

And that's it.

My node version at that time was 10.4.0, npm version was (probably) 6.1.0, nuxt version 1.0 nuxt-buefy: 0.0.3

I will try to set it up again, just to double check if I missed something, and if it's working I'll zip that and share it with you

damien-biasotto commented 6 years ago

@Kuchiriel so I started from scratch :

The commands I used:

Environment:

And here is my project https://nofile.io/f/OKFbc6WBTUp/nuxt-buefy-debug.zip

Kuchiriel commented 6 years ago

@damien-biasotto npm i -S nuxt-buefy This is the same as cloning the project, but the files will be in node_modules folder.

fraunos commented 6 years ago

@Kuchiriel well, maybe it's not? Does simple cloning create buefy.js file in .nuxt directory? PS. Oh, i think I'm starting to get it.