Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

[Question] How to remove console.log instructions on build ? #741

Open
KaKi87 opened this issue Aug 31, 2020 · 4 comments
Open

[Question] How to remove console.log instructions on build ? #741

KaKi87 opened this issue Aug 31, 2020 · 4 comments

Comments

@KaKi87
Copy link

KaKi87 commented Aug 31, 2020

No description provided.

@egoist
Copy link
Owner

egoist commented Aug 31, 2020

@KaKi87
Copy link
Author

KaKi87 commented Aug 31, 2020

How do I make the link between this plugin and poi ?

@egoist
Copy link
Owner

egoist commented Aug 31, 2020

Add it to babel.config.js:

module.exports = {
  presets: ["poi/babel"],

  env: {
    production: {
      plugins: ["transform-remove-console"]
    }
  }
}

@KaKi87
Copy link
Author

KaKi87 commented Aug 31, 2020

Isn't it possible to use the existing poi.config.js instead of multiplicating config files ? Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants