December 2016
Intermediate to advanced
841 pages
17h
English
We will add one last task to the gulpfile.js file, which will allow us to run our application in a web browser. We need to install the browser-sync package by using npm:
npm install -g browser-sync
We will then create two new tasks. These tasks are just used to group a few tasks into one main task. We are doing this because sometimes we want to refresh a webpage to see the effect of changing some TypeScript code and we need to run a number of tasks (compilation, bundling, and so on) before we can actually see the changes in a web browser. By grouping all these tasks into higher-level tasks, we can save some time and make our configuration files more readable:
gulp.task('bundle', function(cb) { runSequence('build', ...Read now
Unlock full access