poi
poi copied to clipboard
[Question] How to remove console.log instructions on build ?
Using a babel plugin https://babeljs.io/docs/en/babel-plugin-transform-remove-console
How do I make the link between this plugin and poi ?
Add it to babel.config.js
:
module.exports = {
presets: ["poi/babel"],
env: {
production: {
plugins: ["transform-remove-console"]
}
}
}
Isn't it possible to use the existing poi.config.js
instead of multiplicating config files ? Thanks