Browse Source

Minify JS files too.

pull/378/head
XhmikosR 11 years ago
parent
commit
cb55d99433
  1. 10
      Gruntfile.js
  2. 3
      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'
}
},

3
docs/_includes/footer.html

@ -42,8 +42,7 @@
<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="/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