-
Notifications
You must be signed in to change notification settings - Fork 107
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
New concat option to add to concat config automatically #17
Conversation
Let me look into this real quick. I'm using usemin and concat now with no problems. Do you have a concat config setting at all, or is usemin creating that behind the scenes for you? Eric Clemmons On Friday, March 29, 2013 at 9:34 AM, Chris Gross wrote:
|
Yea I use the useminPrepare task to create the concat config from my html On Fri, Mar 29, 2013 at 11:37 AM, Eric Clemmons notifications@github.comwrote:
|
This is how I'm using it:
In short, I'm creating a single If your case, the PR-less fix would be to use a simple Will this PR work with the gruntfile I have linked above? Where I have |
Yea I think we our project structures are a bit different. I do put lots I see that your doing two concats. The first one where you append the How do you do daily development? Looking at your Gruntfile, I don't see To use this new PR, you could just remove the concat config you have, options: 'js/all.min.js' Then put your ngtemplates after useminPrepare in your optimize alias. So So yea, we have different structures and I see how it might not be regards, On Fri, Mar 29, 2013 at 12:31 PM, Eric Clemmons notifications@github.comwrote:
|
Ah, I see now. This project actually came about as a result of my work on http://genesis-skeleton.com/. Because the All of this runs with each change to work with LiveReload. Let me take some time tonight to review the PR again. I'd like it to work well with Thanks! |
Cool. Thats very similar to my approach with Thanks for looking at the PR. I think your ngtemplates task is great and On Fri, Mar 29, 2013 at 5:06 PM, Eric Clemmons notifications@github.comwrote:
|
@cgross Just letting you know I didn't forget about this :) I'm finishing my vacation today and will be back home this weekend to address this PR. |
Thanks @cgross! This is exactly what I needed! I've pinned my package.json to your fork for now. Hoping this gets merged. |
It will! We've just been refactoring an internal project that could use this feature as well :) Eric Clemmons On Saturday, May 4, 2013 at 6:39 PM, Jedidiah Hurt wrote:
|
Great. Thanks for sharing this awesome project! Sent from my iPhone On May 4, 2013, at 7:46 PM, Eric Clemmons notifications@github.com wrote:
|
I was just working on the PR for this (cleaning up the README examples to use the same paths & what not) and was wondering, is there any reason for this to be generic to modify any task? For example, I cannot use this with my With that in mind, I was going to just make the option obvious & simple: options: {
base: ...
prepend: ...
usemin: 'path/to/build.js`
} Sound good guys? |
It would also support I don't want to change things up on you @cgross if you're modifying tasks besides |
Hey guys - yea thats ok with me. I've actually moved away from I created |
Just published I decided to make it simple: just specify the new option Thanks again fro the input fellas! |
Props in the README would be awesome :) Sometimes you'll have a On Mon, May 6, 2013 at 12:41 AM, Eric Clemmons notifications@github.comwrote:
|
If you use a task like grunt-usemin to pull your concat config from your html file, then its not possible to just add a new line to your concat config. Instead you want this to happen automatically.
So this adds a new option for ngtemplates to automatically have the dest file added to an existing concat config.