You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A webpack loader to add custom theming variables to your React Toolbox Components build process. You can install it as an npm package:
4
+
5
+
```
6
+
npm install --save-dev toolbox-loader
7
+
```
8
+
9
+
## The configuration file
10
+
11
+
You just need to create a config file holding the variables you want to modify for your build and tell webpack to include it in the building process. For example you can create a little `theme.scss` file in your project context folder:
In your webpack configuration you can add an option to webpack specifying the name of the configuration file. By default it's `theme.scss` so if you call it that way you just need to add the loader:
0 commit comments