Example how to make a custom build when running npm, closes #894.