Skip to content

Instantly share code, notes, and snippets.

@BartoszBilejczyk
Last active January 22, 2021 13:00
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 BartoszBilejczyk/2e3df186d38097d2887d3dfd90dbdf23 to your computer and use it in GitHub Desktop.
Save BartoszBilejczyk/2e3df186d38097d2887d3dfd90dbdf23 to your computer and use it in GitHub Desktop.
// vue.config.js
const getVariablePath = require('./src/config/product-specific/styling');
module.exports = {
css: {
loaderOptions: {
sass: {
additionalData: `
@import "@/styles/global/_variables.scss";
@import "@/styles/product-specific/${getVariablePath()}.scss";
`
}
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment