Perform the steps to patch Internet Explorer with polyfills:
We have a number of polyfills in the scripts folder namely
html5shiv.js
,respond.js
, andplaceholder.js
. Let's combine these scripts into a single file.First, create a new JavaScript file named
polyfills.js
that will hold the content of those polyfill scripts.Open
polyfills.js
in Sublime Text.Add the following lines to import the polyfill scripts:
// @koala-prepend "html5shiv.js" // @koala-prepend "respond.js" // @koala-prepend "placeholder.js"
Note
The
@koala-prepend
directive is the Koala proprietary directive to import JavaScript files. Read more about it in the Koala documentation page at https://github.com/oklai/koala/wiki/JS-CSS-minify-and-combine.In Koala, select
polyfills.js
, and click on the Compile button, as shown in the following screenshot:By this step, Koala will have generated the minified file named
polyfills.min.js
.Open
index.html
, and linkpolyfills.js
before...