Browse Source

Merge pull request #378 from twbs/docs-min-js

Minify docs JS files
pull/381/merge
XhmikosR 11 years ago
parent
commit
86d292831e
  1. 10
      Gruntfile.js
  2. 5
      docs/_includes/footer.html
  3. 10
      docs/assets/js/docs.min.js

10
Gruntfile.js

@ -104,11 +104,21 @@ module.exports = function(grunt) {
uglify: {
options: {
banner: '<%= banner %>',
compress: true,
mangle: true,
preserveComments: false,
report: 'min'
},
ratchet: {
src: '<%= meta.distPath %><%= pkg.name %>.js',
dest: '<%= meta.distPath %><%= pkg.name %>.min.js'
},
docs: {
src: [
'<%= meta.docsAssetsPath %>js/docs.js',
'<%= meta.docsAssetsPath %>js/fingerblast.js'
],
dest: '<%= meta.docsAssetsPath %>js/docs.min.js'
}
},

5
docs/_includes/footer.html

@ -41,9 +41,8 @@
</script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="/dist/ratchet.js"></script>
<script src="/assets/js/docs.js"></script>
<script src="/assets/js/fingerblast.js"></script>
<script src="/dist/ratchet.min.js"></script>
<script src="/assets/js/docs.min.js"></script>
<script src="//use.typekit.net/asj6ttm.js"></script>
<script>try{Typekit.load();}catch(e){}</script>

10
docs/assets/js/docs.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save