Write a grunt file to validate js files using jshint, uglify the js files, minify html files,
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a grunt file to validate js files using jshint, uglify the js files, minify html files, start the webserver and watch the webserver.
- Validate js files with jshint.
- Uglify the js files, place the uglified files inside "dest/js" folder and the file name should not be changed.
- The source file is located in "src/js".
- Minify the html files in "src" folder and place it inside "dest/src" folder with the same file name.
- After html minification, setup and run the webserver.
- Assign the option keepalive to be false.
- Run the watch task to watch the webserver.
- Use the IDE terminal to install plugins.
- Use official grunt plugins only.
Related Book For
Accounting Information Systems
ISBN: 9780132871938
11th Edition
Authors: George H. Bodnar, William S. Hopwood
Posted Date: