In my webpack config, I want to be able to define a global less-variables file which would be included in every less component.
With the sass-loader you can supply the following option:
loaderOptions: {
data: "@import 'globals.sass'"
}
The only option I could find with the less-loader is globalVars:
loaderOptions: {
globalVars: {}
}
Now, this works all right, but globalVars expects an object with key-value pair. I'd rather have a theme.less somewhere which is appended with every component. Is this possible with the less-loader?