Join Ray Villalobos for an in-depth discussion in this video Crushing our JSON file, part of Gulp.js, Git, and Browserify: Web Project Workflows.
But, since we're crushing and minifying everything else, we're…going to take care of JSON the same way.…And, of course, there's a plugin for…that, there's a plugin for just about everything.…And this one's called gulp-jsonminify.…It really doesn't have any options, it's pretty easy to use.…So, we'll go into our terminal, once again, and npm install…--save-dev, and bring in the gulp-jsonminify plugin.…And then we'll go into our gulp file.…
Set up a variable for it.…We'll just copy one of these other ones and call ii jsonminify.…Require the plugin, just like before.…
- Why workflow management?
- Processing tasks with gulp-coffee
- Importing libraries with Browserify
- Processing Sass and Compass
- Issuing tasks in sequence
- Watching changes to files
- Adding static reloads
- Setting up environment variables
- Minifying HTML
- Compressing images
Skill Level Intermediate
Q: When using the exercise files with the "git add" command on a PC, why do I receive warnings saying "LF will be replaced by CRLF"?
A: When running Unix files on a Windows workstation, the text formats are not exactly the same. Line Feeds (LFs) have to be converted to "Carriage Returns + Line Feeds.”