Skip to content

Instantly share code, notes, and snippets.

@59naga
Last active August 29, 2015 14:15
Show Gist options
  • Save 59naga/7dce9fd060ce8af99ad3 to your computer and use it in GitHub Desktop.
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
$ npm install -g main-bower-onefile
$ onefile --version
# 0.0.8
$ mkdir project
$ cd project
$ bower init #色々聞かれるがregisterしないなら全部enterでいい
$ bower install jquery animate.css --save
$ onefile packages
# Compiled packages.js
<!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