Tips and tricks

Use Browserify Globally as Watcher in PhpStorm [ add import / export support ]

Use Browserify Globally as Watcher in PhpStorm [ add Babelify ]

Use Browserify Globally as Watcher in PhpStorm

external link: https://google.com

You will need first the esmify and browser-resolve libraries

sudo npm i -g esmify browser-resolve

Then add

-p
/usr/local/lib/node_modules/esmify/esmify.js

to the browserify command

$FilePath$
-d
-t
[
/usr/local/lib/node_modules/babelify/index.js
]
-p
/usr/local/lib/node_modules/esmify/esmify.js
-p
[/usr/local/lib/node_modules/minifyify/lib/index.js
--map
$FileNameWithoutAllExtensions$.js.map
--output
$FileDir$/$FileNameWithoutAllExtensions$.js.map
]
-o
$FileDir$/$FileNameWithoutAllExtensions$.js

Leave a comment

Your email address will not be published

{"type":"main_options","images_arr":"'#ffffff'","bg_slideshow_time":"0","site_url":"https:\/\/digitalzoomstudio.net","theme_url":"https:\/\/digitalzoomstudio.net\/wp-content\/themes\/qucreative\/","is_customize_preview":"off","gallery_w_thumbs_autoplay_videos":"off","base_url":"https:\/\/digitalzoomstudio.net"}