question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Removing Comments

See original GitHub issue

Hi,

I’m probably missing something simple here but after getting babili working with my gulp build step the final output is still including comments, is there a particular option I should be setting or is there an expectation to use something else to strip comments?

gulp.src([
  path.join(__dirname, 'src', '**', '*.js'),
  path.join(__dirname, '..', '..', 'lib', '**', '*.js')
])
.pipe(sourcemaps.init())
.pipe(rollup({
  entry: path.join(__dirname, 'src', 'index.js')
}))
.pipe(babel({
  presets: ['babili']
}))
.pipe(sourcemaps.write())
.pipe(rename(pkg.main))
.pipe(gulp.dest(destPath))

Cheers, Matt

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

21reactions
nmonticommented, Jun 12, 2018

Updated solution since the renaming:

// .babelrc
{
  "presets": ["env", "minify"],
  "comments": false
}
14reactions
siddharthkpcommented, Dec 11, 2016

Update: Solved it. I was confused by the docs, but then I understood it 😄 Changing my comment, leaving the correct method here.


This is what you should in your .babelrc/package.json


"presets": [
  "babili"
],
"comments": false

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Remove Comments in Word (3+ Ways)
To remove a comment, click Delete in the Comments group. You can also click the arrow below Delete and click Delete or Delete...
Read more >
Removing Comments and Tracked Changes from a Word ...
How to Remove the Comments ... In the menu at the top of the Word document, click the Review tab. ... Go to...
Read more >
How to remove comments in Word (or hide ... - YouTube
Enroll in my Microsoft Word Master Course 🎓 and become a PRO: https://learnmsword.com/youtube-special/How to remove comments in Word?
Read more >
How to REMOVE and HIDE comments in Word (w/ Shortcuts)
Learn how to REMOVE and HIDE comments in Word so that you can quickly declutter your workspace and focus on your task at...
Read more >
How to remove comments in Word - Adobe
Select the Review tab from Word's top toolbar. Select the small arrow under the Delete button. Select Delete All Comments In Document. Before...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found