Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Using npm as a Task Runner!
You have completed Using npm as a Task Runner!
Preview
npm is flexible enough to allow you to create your own tasks.
Links
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
We're going to be using
the uglify package.
0:00
This is an npm module that combines and
minifies JavaScript code.
0:02
We can use it's combined
multiple JavaScript files and
0:08
make the code smaller for
faster delivery to our site's visitors.
0:10
In my source folder,
0:16
I have a models folder
with the dice.js file.
0:18
This contains all the JavaScript code for
generating a random number for a dice.
0:24
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up