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 clean doesn't work #248

Open
rsippl opened this issue Sep 17, 2015 · 2 comments
Open

grunt clean doesn't work #248

rsippl opened this issue Sep 17, 2015 · 2 comments

Comments

@rsippl
Copy link

rsippl commented Sep 17, 2015

"grunt clean" is supposed to clean the www directory, but it doesn't (although it seems to do quite a lot).

Adding this line at the end of Gruntfile.js fixes it for me:

grunt.loadNpmTasks('grunt-contrib-clean');

IIUC, this should be added to templates/common/_Gruntfile.js.

@rsippl
Copy link
Author

rsippl commented Sep 17, 2015

This issue causes some trouble. For example, "grunt serve:compress" uses the production environment (which is fine) but a subsequent "grunt serve" doesn't switch back to development.

@scottmizo
Copy link

Looks like cordova-cli 5.2 add a clean command which is loaded after the grunt-contrib-clean task.

apache/cordova-cli@9fcc4e6

It's kind of hacky but during the 'Register tasks for all Cordova commands' I just leave out the clean command

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