vuejs / vueify

Browserify transform for single-file Vue components
MIT License
1.17k stars 152 forks source link

Import global scss? #202

Closed corysimmons closed 7 years ago

corysimmons commented 7 years ago

How to? I know it's possible with vue-loader but I'm stuck on Browserify.

Basically I'd like to be able to include vars, mixins, etc. into any Vue single-file-component.

corysimmons commented 7 years ago

Figured it out:

// vue.config.js

module.exports = {
  sass: {
    includePaths: [`src/assets/css`]
  }
}

Now I can @import 'global'; from any file.