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

Multiple sources #78

Open
cichy380 opened this issue Jun 19, 2017 · 2 comments
Open

Multiple sources #78

cichy380 opened this issue Jun 19, 2017 · 2 comments

Comments

@cichy380
Copy link

cichy380 commented Jun 19, 2017

Hi,

I have a problem with multi source files. My configuration:

babel: {
    options: {
        minified: true
    },
    plugins: {
        files:  {
            'dir/min/plugins.min.js': [
                'dir/plugins.core.file.js',
                'dir/plugins/*.js' // single plugin files -- IGNORED!!! Why?
            ]
        }
    }
},

but output (destination) file is created based only on dir/plugins.core.file.js and rest of sources (dir/plugins/*.js) are ignored.

What am I doing wrong?

@adampiskorski
Copy link

adampiskorski commented Jul 19, 2017

I also have this problem

I tried multiple methods specified here, but none of them worked.
I'm now off to use concat first, as suggested here

@mattjackson1
Copy link

I found that I needed to use something like grunt-contrib-concat to first concatenate the files into a single source file, and THEN run the babel task.

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

3 participants