Created
June 20, 2017 20:47
-
-
Save xtrasmal/300e138649c62eb55df3bcc18cea5d1f to your computer and use it in GitHub Desktop.
Global SCSS variables availlable in your vue components
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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