grunt-babel icon indicating copy to clipboard operation
grunt-babel copied to clipboard

Only compiling files using ext once despite changes.

Open afridley opened this issue 6 years ago • 0 comments

grunt.config.merge({
        babel: {
            options: {
                sourceMap: false,
                presets: ['env']
            },
            dist: {
                files: [{
                    expand: true,
                    cwd: '<%= env.DIR_SRC %>/assets/scripts/',
                    src: '**/*.js',
                    ext: '.cmp.js',
                    dest: '<%= env.DIR_SRC %>/assets/scripts/'
                }]
            }
        },

This will compile the .cmp.js files, but any changes to the original js files will yeild no change until the .cmp.js files are deleted.

afridley avatar Mar 26 '18 17:03 afridley