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

grunt-assemble + grunt-webpack = lost plugin definition in webpack configuration #27

Closed
StephanGerbeth opened this issue Sep 27, 2015 · 2 comments

Comments

@StephanGerbeth
Copy link

Hi,

i have a strange bug when i run grunt-assemble and grunt-webpack in the same task.

I try to explain it:

  • I registered an own task by grunt.registerTask('build', ['assemble', 'webpack']);
  • the task abort with the following message Running "webpack:app" (webpack) task Warning: arguments[i].apply is not a function Use --force to continue.
  • At first i thought: "Uh there is bug in webpack, i try to fix it!". I analyzed the code and i found a hint here.
  • options.plugins has empty objects inside. Usually some plugins should be listed which i defined inside the webpack configuration e.g. dedupe, polyfills, uglify.
  • For any reason i changed the order inside my grunt task to grunt.registerTask('build', ['webpack', 'assemble']);
  • AND - the complete task is running successfull :)
  • But it is really important for me to run assemble at first. So this solution is useless for me. :(

My conclusion:
I think a bug is inside assemble which modifies the plugin definition of other tasks. But i'm not sure, because i can't locate him.

Can you help me to solve this strange one?

This is my repo to reproduce the problem: Link
Run grunt build

Cheers
Stephan

@StephanGerbeth
Copy link
Author

UPDATE:
I can isolate the bug inside the aggregate helper.
if i remove this helper inside my project everything works fine.
Should i move this issue to the helper-aggregate git repo?

@jonschlinkert
Copy link
Member

Should i move this issue to the helper-aggregate git repo?

Yes, that would be great. thanks. closing here

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