Skip to content

Instantly share code, notes, and snippets.

@nicohq
Last active April 20, 2022 00:51
Show Gist options
  • Save nicohq/fdf688785c3449e388cb7ca50f7436e4 to your computer and use it in GitHub Desktop.
Save nicohq/fdf688785c3449e388cb7ca50f7436e4 to your computer and use it in GitHub Desktop.
{
"name": "browserify_babelify",
"version": "1.1.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"watch": "watchify src/app.js -d -o bundle.js -v [ babelify --presets [es2015] ]",
"build": "browserify src/app.js -t [ babelify --presets es2015 ] | uglifyjs -mco bundle.js"
},
"browserify": {
"transform": [
[
"babelify",
{
"presets": [
"es2015"
]
}
]
]
},
"author": "",
"license": "ISC",
"devDependencies": {
"babelify": "^7.2.0",
"browserify": "^14.1.0",
"watchify": "^3.7.0",
"babel-preset-es2015": "^6.24.0",
"uglify-js": "^2.8.14"
}
}
@prosper20
Copy link

Hello, I'm having issues with a similar code. Can you help?
Screenshot (8)

Screenshot (7)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment