skin-plugin
v1.0.0
Published
Build-time skin selector
Downloads
4
Readme
This plugin adds ability to select certain theme at build step
How-to:
- Create basic stylesheet file:
SomeFile.css
- Create skinned version and place it near original file, name it with
SomeFile:SKIN_NAME.css
whereSKIN_NAME
is name of your skin - Import basic file somewhere - in React component or in some entry point
import SkinPlugin
to Webpack config and addnew SkinPlugin('SKIN_NAME')
to plugins list
By default it handles css
and scss
file extensions. You can provide your own style file extensions list to handle with second argument: new SkinPlugin('my-cool-skin', ['css', 'pcss', 'less'])