As for CSS, you'll want to load it into your index / whatever.html file before looking for your JS.
Try the following before you need semantic-ui:
var $ = jQuery = require('jquery/dist/jquery.js'); window.jQuery = $; // Assure it available globally. var s = require('semantic-ui/dist/semantic-ui.js');
Not 100% sure that this will work, but worth a try.
Everything can get complicated with CommonJS modules. Also, it might be worth a look at React + Browserify. Makes it very easy to import NPM modules using require .
source share