Skip to content

Instantly share code, notes, and snippets.

@shaharkazaz
Last active July 29, 2021 11:49
Show Gist options
  • Save shaharkazaz/6fc9a3823b112903c095c4623d2ef267 to your computer and use it in GitHub Desktop.
Save shaharkazaz/6fc9a3823b112903c095c4623d2ef267 to your computer and use it in GitHub Desktop.
Variabless webpack plugin
const { VariablessWebpackPlugin } = require('variabless/webpack-plugin');
module.exports = {
plugins: [
new VariablessWebpackPlugin({
watch?: boolean, // listen to changes
srcPath: 'src/variabless.ts', // the variables rules file
outputPath: 'src/assets/styles/theme.css', // generated css file path
}),
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment