Last active
July 29, 2021 11:49
-
-
Save shaharkazaz/6fc9a3823b112903c095c4623d2ef267 to your computer and use it in GitHub Desktop.
Variabless webpack plugin
This file contains 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
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