angular-ui-switch icon indicating copy to clipboard operation
angular-ui-switch copied to clipboard

Webpack support

Open simonnilsson opened this issue 8 years ago • 0 comments

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

require('./angular-ui-switch.css');
require('./angular-ui-switch.js');
module.exports = 'uiSwitch';

package.json

"main": "index.js",

simonnilsson avatar Oct 18 '16 12:10 simonnilsson