diff --git a/scripts/build-js.sh b/scripts/build-js.sh index 0a8b14a..fc4458b 100644 --- a/scripts/build-js.sh +++ b/scripts/build-js.sh @@ -3,7 +3,7 @@ set -e echo ">> Building Libraries..." -# uglifyjs node_modules/jquery/dist/jquery.js --compress --screw-ie8 --define --stats --keep-fnames -o build/lib/jquery.js +uglifyjs node_modules/jquery/dist/jquery.js --compress --screw-ie8 --define --stats --keep-fnames -o build/lib/jquery.js uglifyjs node_modules/bootstrap/dist/js/bootstrap.js --compress --screw-ie8 --define --stats --keep-fnames -o build/lib/bootstrap.js echo ">> Building Application JS..." diff --git a/src/js/app.js b/src/js/app.js index 68a23ee..dfabfc9 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -2,5 +2,7 @@ var React = require('react'); var Home = require('./components/home'); var NavBar = require('./components/navbar'); +window.$ = window.jQuery = window.require('./lib/jquery.js'); + React.render(, document.getElementById('NavBarContainer')); React.render(, document.getElementById('AppContainer')); \ No newline at end of file