Permalink
Browse files

Minified js

Signed-off-by: Martin Richard <martius@martiusweb.net>
  • Loading branch information...
1 parent b4db63a commit 8e82c00a3422892877f751372ad0ed9039af74ed @Martiusweb committed Sep 27, 2013
Showing with 8 additions and 2 deletions.
  1. +4 −0 Makefile
  2. +2 −2 index.html
  3. +1 −0 js/martiusweb.min.js
  4. +1 −0 js/scrollspy.min.js
View
@@ -4,6 +4,10 @@ BOOTSTRAP_LESS = ./less/styles.less
BOOTSTRAP_RESPONSIVE = ./css/styles-responsive.css
BOOTSTRAP_RESPONSIVE_LESS = ./less/responsive.less
+minassets:
+ ./${BOOTSTRAP_PATH}/node_modules/.bin/uglifyjs -nc js/scrollspy.js > js/scrollspy.min.js
+ ./${BOOTSTRAP_PATH}/node_modules/.bin/uglifyjs -nc js/martiusweb.js > js/martiusweb.min.js
+
bootstrap:
mkdir -p ./css ./js ./img
./${BOOTSTRAP_PATH}/node_modules/.bin/jshint ${BOOTSTRAP_PATH}/js/*.js --config ${BOOTSTRAP_PATH}/js/.jshintrc
View
@@ -384,7 +384,7 @@
<script
src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery.js"><\/script>')</script>
-<script src="js/scrollspy.js"></script>
-<script src="js/martiusweb.js"></script>
+<script src="js/scrollspy.min.js"></script>
+<script src="js/martiusweb.min.js"></script>
</body>
</html>
Oops, something went wrong.
View
Oops, something went wrong.

0 comments on commit 8e82c00

Please sign in to comment.