Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It's not watching for .es6 files #545

Open
felipepalazzo opened this issue Jul 3, 2017 · 0 comments
Open

It's not watching for .es6 files #545

felipepalazzo opened this issue Jul 3, 2017 · 0 comments

Comments

@felipepalazzo
Copy link

Hi!

I've created a task to transpile .es6 files using grunt-babel, but somehow it's not working. If I change the file extension (e.g. js), then task runs properly. Could anyone help me with that? I've already tried this and it didn't work so far.

watch: {
    babel: {
        files: ['<%= yeoman.client %>/{app,components,services}/**/*.es6'],
        tasks: [babel:dist],
    }
}

and task:

babel: {
      options: {
        sourceMap: false,
        presets: ['es2015']
      },
      dist: {
        files: [{
          expand: true,
          src: ['<%= yeoman.client %>/{app,components,services}/**/*.es6'],
          ext: '.js',
        }]
      },
    },
  • npm 3.10.10
  • node v6.9.5
  • OS 10.12.1
  • grunt-contrib-watch 0.6.1
  • grunt-babel 6.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant