@intouchg/webpack-theme-plugin
v0.1.1
Published
Webpack plugin to run the Intouch Design System theme processor @intouchg/theme
Downloads
4
Readme
@intouchg/webpack-theme-plugin
Webpack plugin to run the Intouch Design System theme processor @intouchg/theme
Getting Started
Initialize and pass the plugin to Webpack. The plugin will read the .idsconfig.json
file in the project root.
// webpack.config.js
const IntouchThemePlugin = require('@intouchg/webpack-theme-plugin')
// ...
webpackPlugins.push(new IntouchThemePlugin())
// .idsconfig.json
{
"values": "theme/values.json",
"groups": "theme/groups.json",
"components": "theme/components.json",
"variants": "theme/variants.json",
"output": "theme/theme.js"
}