skin-plugin
v1.0.0
Published
Build-time skin selector
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.csswhereSKIN_NAMEis name of your skin - Import basic file somewhere - in React component or in some entry point
import SkinPluginto 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'])
