Edam loader for prettier text.
- Input
{{#is name '123'}}
var name = "abc";
{{/is}
- Output
var name = "abc";
The output text contains two empty lines between var name = "abc";
So we could use edam-prettier-loader
to format the empty line.
prettier config file path
NOTE: The reset options inherit prettier's options
// template config file
module.exports = {
// ...
mappers: [{
test: '*.{jsx,js}',
loader: [
'LoDash', // preset loader
[
require('edam-prettier-loader'),
{
// options
}
]
]
}]
}