Skip to content

Instantly share code, notes, and snippets.

@davekiss
Last active August 3, 2016 22:40
Show Gist options
  • Save davekiss/757d0963a7589ca376613e4090ab5eb5 to your computer and use it in GitHub Desktop.
Save davekiss/757d0963a7589ca376613e4090ab5eb5 to your computer and use it in GitHub Desktop.
Fix Sage 9
#1. Update Bootstrap compatibility in /assets/scripts/main.js
// Import npm dependencies
// import 'bootstrap/dist/js/umd/util.js';
// import 'bootstrap/dist/js/umd/alert.js';
// import 'bootstrap/dist/js/umd/button.js';
// import 'bootstrap/dist/js/umd/carousel.js';
// import 'bootstrap/dist/js/umd/collapse.js';
// import 'bootstrap/dist/js/umd/dropdown.js';
// import 'bootstrap/dist/js/umd/modal.js';
// import 'bootstrap/dist/js/umd/scrollspy.js';
// import 'bootstrap/dist/js/umd/tab.js';
// import 'bootstrap/dist/js/umd/tooltip.js';
// import 'bootstrap/dist/js/umd/popover.js';
import 'bootstrap/dist/js/bootstrap.js';
#2 Update Bootstrap grid mixins in /assets/styles/components/_grid.scss
// Grid system
.main {
@include make-col(8);
}
.sidebar {
@include make-col(4);
}
#3 (optional) if using HTTPS, change schema in /watch.js on line 12
var host = 'https://localhost',
#4 update /assets/config.json with your theme name and correct devUrl
#5 update /src/setup.php with your theme name in place of `sage`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment