Babel-node doesn't ignore specified files/folder on compilation

I have a Node app using ES6 that I run with the following command nodemon cluster.js --exec babel-node. I also have a .babelrc file :

{
    "presets": ["es2015"],
    "ignore": [
        "public"
    ]
}

The folder public contains front-end files such as html, css and js. But when I edit a JS file within the public folder, babel-node compiles my code and I don't want this to happen.

Answers


I think it's related to this bug. Try using nodemon cluster.js --exec "babel-node --ignore public".


Need Your Help

ExtJS 4 state provider

javascript extjs checkbox state

I have the following example (http://jsfiddle.net/a473n/1/). The code is this: