1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

cljs-watchを使って吐く javascript を名前空間ごとにバラバラのファイルにする

1
Last updated at Posted at 2012-03-16

デフォルトは optimization がかかってるので
resources/public/cljs/bootstrap.js に全て一纏めになって吐き出される。
開発中はchromeのコンソールでファイル名が確認できた方がデバッグしやすいので
名前空間ごとのファイルに出力するよう、optimizationを無効にするオプションを指定しておく。

cljs-watch src/cljs '{:optimizations nil}'
<script src="/cljs/goog/base.js" type="text/javascript"></script>
<script src="/cljs/bootstrap.js" type="text/javascript"></script>
<script type="text/javascript">goog.require('foo');</script>
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?