This PR adds a dist/ folder to the repo and points package.json's main field to dist/quartz-react.js.
It also copies all the css files into dist/ using a custom script (build/build-css.js). This script prepends the current quartz-react version and md5 hash of each css file within a comment so that users of the css can know whether they need to update their css. The comments look like this:
/*
Quartz-react version: 0.0.1
Current file hash: 3ea776fd3ad9615fe3050c37a41c0eb5
*/
Important:
For future changes that involve adding a dependency, build/rollup.config.js must have its external field updated to include that new dependency.
This PR adds a
dist/
folder to the repo and pointspackage.json
'smain
field todist/quartz-react.js
.It also copies all the css files into
dist/
using a custom script (build/build-css.js
). This script prepends the current quartz-react version and md5 hash of each css file within a comment so that users of the css can know whether they need to update their css. The comments look like this:Important: For future changes that involve adding a dependency,
build/rollup.config.js
must have itsexternal
field updated to include that new dependency.