Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

How compressed files are linked. #120

epetre opened this Issue Jul 4, 2012 · 2 comments


None yet
2 participants

epetre commented Jul 4, 2012

Hi, I am trying to compress the files using bbb debug or bbb release.
It all works without errors, but I cannot figure out how to link the compressed files.

The first part I am trying to accomplish is to compress all my templates to JST (JavaScript Templates).

I can see the command will compile them to dist/debug/templates.js, but I am not linking dist/debug/templates.js anywhere
so I am wondering how it is done... is it a convention where backbone will look there .
If it is a convention, how does it know when the app is in production or when it is in dev environment.

jst: {
  "dist/debug/templates.js": [

Also I am only opening an issue because I have looked around and couldn't find documentation about this.

Thank you for your time.

epetre commented Jul 4, 2012

here is how we include config.js

<script type="text/javascript" data-main="/app/config" src="/assets/js/libs/require.js"></script>, maybe we should get it from the debug or release folder instead as such? <script type="text/javascript" src="/dist/debug/require.js"> </script>

For the templates is it possible that it loads all jst templates into the global JST ?


tbranyen commented Jul 4, 2012

It creates the templates.js file and then reuses it inside the grunt file to make dist/debug/require.js.


@tbranyen tbranyen closed this Jul 4, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment