Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save santiago-jv/48fb25d746c3818852f289f39012c507 to your computer and use it in GitHub Desktop.
Save santiago-jv/48fb25d746c3818852f289f39012c507 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"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment