Skip to content

Instantly share code, notes, and snippets.

@SrShark
Last active January 31, 2024 17:12
Show Gist options
  • Save SrShark/698b201828de590d94b1a4659a068f28 to your computer and use it in GitHub Desktop.
Save SrShark/698b201828de590d94b1a4659a068f28 to your computer and use it in GitHub Desktop.
Configurar Nodemon con Babel (ES6)

Configurar Nodemon con Babel (ES6)

Dependencias:

npm i -D babel-cli babel-preset-env nodemon

Configuración

Configurar babel para su correcto funcionamiento en el package.json:

"babel": {
  "presets": [
    "env"
  ]
},

Scripts

Agregar los scripts al package.json:

"scripts": {
  "serve": "babel-node server.js",
  "start": "nodemon --exec npm run serve"
},
@OhMyJuan
Copy link

So helpful

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