To support webpack and npm the module should require the css file. It is also common practice to export the angular modules name. I would recommend creating a index.js file like the one below. This file should also be referenced in package.json main-field instead of "angular-ui-switch.js".
To support webpack and npm the module should require the css file. It is also common practice to export the angular modules name. I would recommend creating a index.js file like the one below. This file should also be referenced in package.json main-field instead of
"angular-ui-switch.js"
.index.js
package.json