Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMD requires 'handlebars' instead of just 'handlebars.runtime' #143

Open
foundryspatial-duncan opened this issue Jul 1, 2015 · 1 comment

Comments

@foundryspatial-duncan
Copy link

If I use this plugin with just the one option amd: true, the output will be quite different from running the command line compiler with just the -a (AMD) option.

In particular, the command line compiler only requires handlebars.runtime while the plugin's output requires the whole handlebars.

Is there a way to get the grunt task to output the same as the CLI compiler with the same options?
And/or just some way to get it to require the runtime instead of the whole thing?

@ffflabs
Copy link

ffflabs commented Jul 26, 2017

instead of

  options: {
    amd: true
  }

you can use

  options: {
    amd: 'handlebars.runtime'
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants