1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Customizer: include the minified files only on GitHub pages.

This commit is contained in:
XhmikosR 2014-10-29 06:46:02 +02:00
parent 4e3ffa5629
commit a515191afd
2 changed files with 11 additions and 0 deletions

View file

@ -138,6 +138,7 @@ module.exports = function (grunt) {
dest: 'dist/js/<%= pkg.name %>.min.js'
},
customize: {
// NOTE: This src list is duplicated in footer.html; if making changes here, be sure to update the other copy too.
src: [
'docs/assets/js/vendor/less.min.js',
'docs/assets/js/vendor/jszip.min.js',

View file

@ -46,7 +46,17 @@
<script src="../assets/js/src/application.js"></script>
{% endif %}
{% if page.slug == "customize" %}
{% if site.github %}
<script src="../assets/js/customize.min.js"></script>
{% else %}
<script src="../assets/js/vendor/less.min.js"></script>
<script src="../assets/js/vendor/jszip.min.js"></script>
<script src="../assets/js/vendor/uglify.min.js"></script>
<script src="../assets/js/vendor/Blob.js"></script>
<script src="../assets/js/vendor/FileSaver.js"></script>
<script src="../assets/js/raw-files.min.js"></script>
<script src="../assets/js/src/customizer.js"></script>
{% endif %}
{% endif %}
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="../assets/js/ie10-viewport-bug-workaround.js"></script>