"... and include it on your `.angular-cli.json` config file" in Ionic v3?

#1

I am trying to use a library that has these instructions:

This module is dependant of hls.js library and you need to install via npm install hls.js --save and include it on your .angular-cli.json config file:

{
    ...
    "apps": [
        {
            ...
            "scripts": [
                "../node_modules/hls.js/dist/hls.min.js"
            ],
            ...
        }
    ],
    ...
}

What is the Ionic v3 equivalent to that?

1 Like
#2

Workaround: Include this in index.html:

<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
1 Like
#3

This is the correct approach with Ionic 3: https://stackoverflow.com/a/54367166/1077309