Skip to content

Instantly share code, notes, and snippets.

@alectoist
Created May 31, 2016 18:50
Show Gist options
  • Save alectoist/b5d87aa14c63ef0b9d66eac31a49fec1 to your computer and use it in GitHub Desktop.
Save alectoist/b5d87aa14c63ef0b9d66eac31a49fec1 to your computer and use it in GitHub Desktop.
how to load bootstrap into your npm project without NASTY NASTY errors
window.$ = window.jQuery = require('jquery');
const Bootstrap = require('bootstrap-webpack');
Bootstrap.$ = $;
import './assets/styles.less';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment