Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Task fails when saving a file of a deferred module #177

Open
SpikeShape opened this issue Feb 9, 2016 · 2 comments
Open

Task fails when saving a file of a deferred module #177

SpikeShape opened this issue Feb 9, 2016 · 2 comments
Labels

Comments

@SpikeShape
Copy link

When I have the watch task running and save a (JS) file of a freshly added deferred module the task fails with 'Warning: Required config property "uglify.deferred" missing'.

If I run the default grunt everything works just fine. and my module works as expected.

The watch task is a config for js_deferred that tries o run uglify:deferred which does not exist. I assume it should be uglify:deferred_development?

@SpikeShape SpikeShape changed the title Ttask fails when saving a file of a deferred module Task fails when saving a file of a deferred module Feb 9, 2016
@markusfalk
Copy link
Contributor

Would have to reconstruct but my guess is that its just the watch task that cannot handle files added after watch has been started. (gruntjs/grunt-contrib-watch#166)

What version are you running this on?

@SpikeShape
Copy link
Author

Do you mean grunt-contrib-watch version? grunt-contrib-watch@0.6.1.

But I am referring to the gruntfile that is generated from the kickstart generatr:
From line 24 to 27 it configures what should happen when a js file of a deferred module is changed / saved:

 js_deferred: {
   files: ['components/app/_deferred/**/*.js'],
   tasks: ['uglify:deferred', 'modernizr'],
 },

but there is no 'deferred' configuration for uglify. Line 157 however introduces a configuration called 'deferred_development'.
So either the call or the configuration should be changed.

Edit: fixed typo

@markusfalk markusfalk added the bug label Feb 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants