1.0.0 • Published 6 years ago
skin-plugin v1.0.0
This plugin adds ability to select certain theme at build step
How-to:
1) Create basic stylesheet file: SomeFile.css
2) Create skinned version and place it near original file, name it with SomeFile:SKIN_NAME.css
where SKIN_NAME
is name of your skin
3) Import basic file somewhere - in React component or in some entry point
4) import SkinPlugin
to Webpack config and add new 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'])
1.0.0
6 years ago