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

fixed extension issue (issue #862 ) #863

Closed
wants to merge 1 commit into from
Closed

fixed extension issue (issue #862 ) #863

wants to merge 1 commit into from

Conversation

lucianmat
Copy link

On file with multiple dots, extension is broken
Eg: on {ext:'.js'} myscript.prod.dust => myscript.js, instead it should
produce mysqcript.prod.js

On file with multiple dots, extension is broken
Eg: on {ext:'.js'} myscript.prod.dust => myscript.js, instead it should
produce mysqcript.prod.js
@shama
Copy link
Member

shama commented Aug 2, 2013

Thanks but closing as this is a duplicate of #856, #750, #625, #718, #730.

There's two ways ext could work; it could consider everything after the first dot the extension, or everything after the last dot the extension—it can't be smart enough to "guess" automatically. We chose the former because the use-case is more common (we encounter .min.js files all the time). That being said, you can use the rename option to specify a function that will use whatever custom naming logic you need.

FWIW, I believe support for this way was added in globule which will eventually get upstreamed into grunt.

@tkellen
Copy link
Member

tkellen commented Mar 14, 2014

This has been resolved with the extDot option. See:
http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically

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

Successfully merging this pull request may close these issues.

None yet

3 participants