A boilerplate for creating Netlify CMS widgets.
- umd, iife, commonjs and es6 module bundle.
- using global
createClass
andh
functions fromnetlify-cms
in browser module ^. - remove
PropTypes
andImmutablePropTypes
in browser module ^.
^ umd
and iife
Clone or download this repository, then install depedencies.
git clone https://github.com/ekoeryanto/netlify-cms-widget-starter-rollup.git project
cd project
npm ci
Run npm start
script
npm start
Open http://localhost:10001 in your browser and it will reload whenever file in src
changes.
Use es5 class component (create-react-class
) instead of es6 for small bundle size if you plan to use the widget with script tag method as we'll borrow the global window.createClass
and window.h
from netlify-cms
in umd or iife bundle
MIT