Use "Gulp"

  • 1. All packages must be installed - 'npm i'
  • 2. The main commands are in the file - gulpfile.js
  • 2.2. To deploy a server - "gulp watch"
  • 2.3. To generate the production version - "gulp build"
  • 2.4. There is a command for css optimization - "gulp cssMin"
  • 2.5. There is a command for js optimization - "gulp jsMin"
  • 2.6. There is a command for html optimization - "gulp htmlMin"
  • 2.7. There is a command for html, css, js optimization - "gulp htmlMin"

There is a separate command for generating SVG sprite - gulp svg
*All icons are located here: src/includes/svg-sprite/item, generating SVG sprite.
By name can be called in html:

					
						
					
				

4. there is a command for image optimization - gulp img
*You must first uncomment the line 121 (// .pipe(tiny())) in file gulpfile.js

Main Documentation for "Gulp":
https://gulpjs.com/docs/en/getting-started/quick-start

BACK TO TOP