Last active
August 29, 2015 14:15
-
-
Save 59naga/7dce9fd060ce8af99ad3 to your computer and use it in GitHub Desktop.
main-bower-onefileでjsとcssを1ファイルにconcatする ref: http://qiita.com/59naga/items/502d9324ab4a8cbf6fd0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm install -g main-bower-onefile | |
$ onefile --version | |
# 0.0.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir project | |
$ cd project | |
$ bower init #色々聞かれるがregisterしないなら全部enterでいい | |
$ bower install jquery animate.css --save | |
$ onefile packages | |
# Compiled packages.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<script src="packages.js"></script> | |
<script>$(function(){$(document.body).append('<p class="animated bounce">Hi<p>')})</script> | |
</head> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment