Skip to content

Instantly share code, notes, and snippets.

@hal0gen
Created February 8, 2017 22:15
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 hal0gen/c151997d558a8c1cc7123e18f4dc67a3 to your computer and use it in GitHub Desktop.
Save hal0gen/c151997d558a8c1cc7123e18f4dc67a3 to your computer and use it in GitHub Desktop.
Modified vue-cli cssLoaders to include a SASS file in every component
exports.cssLoaders = function (options) {
// ...
return {
// ...
scss: generateLoaders(['css', 'sass?data=@import "~src/styles/app";']), // Make custom SASS available to all components
// ...
}
}
@michaelaflores
Copy link

Looks like this is for the old CLI/webpack 1 perhaps. Throws an error under latest CLI and webpack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment