mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
16 lines
509 B
Plaintext
16 lines
509 B
Plaintext
The steps are essentially:
|
|
1) Install mdn-polyfills and url-polyfill packages
|
|
|
|
npm install --no-save mdn-polyfills url-polyfill
|
|
|
|
2) Join them all together:
|
|
|
|
cd node_modules/mdn-polyfills
|
|
cat CustomEvent.* Element.* Function.* HTMLCanvasElement.* MouseEvent.* Node.prototype.* NodeList.* > ../../lib/polyfills/polyfill.js
|
|
cd ../url-polyfill/
|
|
cat url-polyfill.min.js >> ../../lib/polyfills/polyfill.js
|
|
|
|
3) Uninstall the packages again
|
|
|
|
npm uninstall --no-save mdn-polyfills url-polyfill
|