Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Accounting Information Systems

Authors: George H. Bodnar, William S. Hopwood

11th Edition

0132871939, 978-0132871938

More Books

Students also viewed these Programming questions

Question

Question

Answered: 1 week ago