1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Browserfyの出力をpretty printした状態で吐き出したい

Posted at

Browserifyさんどんな出力吐いてるの?と思って研究したい時に欲しくなった。

答え

js-beautify使う。

$ npm i -D js-beautify
package.json
"scripts": {
  "beautify-build":"browserify -e ./src/index.js | js-beautify -f - > build/index.js"
}

だいたいこんな感じ。
beautifyfyとかあるかなと思ったけど無かった。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?