0.1.1 • Published 4 years ago

@intouchg/webpack-theme-plugin v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@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"
}