use preprocess to create constants.js