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
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.
Step by Step Solution
3.52 Rating (155 Votes )
There are 3 Steps involved in it
Step: 1
Heres a Gruntfile that should do what youre looking for moduleexports functiongrunt Load the plugins ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Accounting Information Systems
Authors: George H. Bodnar, William S. Hopwood
11th Edition
0132871939, 978-0132871938
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App