0.0.2 • Published 6 years ago
re-loader v0.0.2
re-loader
A webpack loader .
Installation
npm install --save-dev re-loader
Define 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!')
// #endif
output
// #if IS_SKIP
console.log('!Skip!')
// #endif