Open SpikeShape opened 8 years ago
Would have to reconstruct but my guess is that its just the watch task that cannot handle files added after watch has been started. (https://github.com/gruntjs/grunt-contrib-watch/issues/166)
What version are you running this on?
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
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?