Fixed jquery
This commit is contained in:
parent
214adefd94
commit
114ebce52f
2 changed files with 3 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo ">> Building Libraries..."
|
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
|
uglifyjs node_modules/bootstrap/dist/js/bootstrap.js --compress --screw-ie8 --define --stats --keep-fnames -o build/lib/bootstrap.js
|
||||||
|
|
||||||
echo ">> Building Application JS..."
|
echo ">> Building Application JS..."
|
||||||
|
|
|
@ -2,5 +2,7 @@ var React = require('react');
|
||||||
var Home = require('./components/home');
|
var Home = require('./components/home');
|
||||||
var NavBar = require('./components/navbar');
|
var NavBar = require('./components/navbar');
|
||||||
|
|
||||||
|
window.$ = window.jQuery = window.require('./lib/jquery.js');
|
||||||
|
|
||||||
React.render(<NavBar />, document.getElementById('NavBarContainer'));
|
React.render(<NavBar />, document.getElementById('NavBarContainer'));
|
||||||
React.render(<Home />, document.getElementById('AppContainer'));
|
React.render(<Home />, document.getElementById('AppContainer'));
|
Reference in a new issue