0.0.2 • Published 8 years ago
re-loader v0.0.2
re-loader
A webpack loader .
Installation
npm install --save-dev re-loaderDefine macro pre-processor
use defines options to remove macro blocks
Options
{
defines: {
IS_SKIP: false,
IS_REMOVE: true,
}
}input
// #if IS_SKIP
console.log('!Skip!')
// #endif
// #if IS_REMOVE
console.log('!Remove!')
// #endifoutput
// #if IS_SKIP
console.log('!Skip!')
// #endif