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

How concat should work? #3

Closed
lanwin opened this issue Mar 18, 2015 · 2 comments
Closed

How concat should work? #3

lanwin opened this issue Mar 18, 2015 · 2 comments

Comments

@lanwin
Copy link

lanwin commented Mar 18, 2015

Ive tried concat, but it dont seems to change anything. I would expect to give a file on dest instead of a directory and then concat merge all tag files into that dest file.

I put an console.log into the this.files.forEach and can see that this is called mutliple times and I would assume it should not when usinging concat.

If I do something work, please put an example into the readme so everyone can see how it should be.

{
  options: {
    concat: true
  },
  dist: {
     expand: true,
     cwd: 'src',
     src: '**/*.tag',
     dest: 'build',
     ext: '.js'
  }
}
@lanwin lanwin changed the title How concat should work How concat should work? Mar 18, 2015
@ariesjia
Copy link
Owner

thanks for you commit ,

you can set config like this , take care not to set expand: true option , here is example.

concatFile: {
        options: {
            concat : true
        },
        src: 'script/*.tag',
        dest: '.tmp/tag.js'
}

I will update this example to reademe file.
thank you .

@lanwin
Copy link
Author

lanwin commented Mar 19, 2015

THX! Works well now. The funny thing is that I though I had tried this.....

@lanwin lanwin closed this as completed Mar 19, 2015
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

2 participants