anteriovieira / nuxt-sass-resources-loader

SASS resources (e.g. variables, mixins etc.) module for NuxtJs
https://www.npmjs.com/package/nuxt-sass-resources-loader
185 stars 15 forks source link

It didn't work in pages/*.vue. How can I let it work? #12

Closed moecasts closed 6 years ago

moecasts commented 6 years ago

I want it work in pages/*.vue. How can I make it?

anteriovieira commented 6 years ago

Hi @MoeCasts , there is no secret, just add the style tag in the page files.

moecasts commented 6 years ago

@anteriovieira The requirement is that I want to use the scss variables in pages/*.vue. However, the normal config can't meet my requirement.

anteriovieira commented 6 years ago

As you can see in our test example this works as you would like.

moecasts commented 6 years ago

Thank you very much. It's my mistake. I had forgot to add lang attr in style.

anteriovieira commented 6 years ago

Do not worry :smile: