You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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?
Hi,
i have a strange bug when i run grunt-assemble and grunt-webpack in the same task.
I try to explain it:
grunt.registerTask('build', ['assemble', 'webpack']);
Running "webpack:app" (webpack) task Warning: arguments[i].apply is not a function Use --force to continue.
options.plugins
has empty objects inside. Usually some plugins should be listed which i defined inside the webpack configuration e.g. dedupe, polyfills, uglify.grunt.registerTask('build', ['webpack', 'assemble']);
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
The text was updated successfully, but these errors were encountered: