Created
February 8, 2017 22:15
-
-
Save hal0gen/c151997d558a8c1cc7123e18f4dc67a3 to your computer and use it in GitHub Desktop.
Modified vue-cli cssLoaders to include a SASS file in every component
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
exports.cssLoaders = function (options) { | |
// ... | |
return { | |
// ... | |
scss: generateLoaders(['css', 'sass?data=@import "~src/styles/app";']), // Make custom SASS available to all components | |
// ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like this is for the old CLI/webpack 1 perhaps. Throws an error under latest CLI and webpack.