Skip to content

Instantly share code, notes, and snippets.

@xtrasmal
Created June 20, 2017 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xtrasmal/300e138649c62eb55df3bcc18cea5d1f to your computer and use it in GitHub Desktop.
Save xtrasmal/300e138649c62eb55df3bcc18cea5d1f to your computer and use it in GitHub Desktop.
Global SCSS variables availlable in your vue components
// in your webpack config
const variables = path.resolve(__dirname, './your/directory/variables.scss')
resolve: {
alias: {
variables
}
}
// in *.vue:
@import '~variables'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment