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

Add file extension for infile #374

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Add file extension for infile #374

wants to merge 3 commits into from

Conversation

stephenap07
Copy link

I need to keep the file extension when loading a temporary file for filters.
I use this for integrating with require.js

I needed the infile to have a file extension for integrating with requirejs. 
the optimizer 'r.js' requires the module 'name' to have a .js file
extension. 
Actually used suffix for temp file.
Good god, typo.
@jezdez
Copy link
Member

jezdez commented May 27, 2013

I'm not sure I understand, why do you need the temporary file to have an extension?

@stephenap07
Copy link
Author

Say that {input} is "/tmp/someTemp" . The requirejs optimizer takes in "/tmp/someTemp" as its module ( at this point it has no need for the extension ). It just assumes that the temp file is a javascript file with a '.js' extension. It then looks for the file "/tmp/someTemp.js" and sees that it doesn't exist and fails. Adding an extension to the temporary file fixes this.

@diox
Copy link
Member

diox commented May 25, 2014

I don't see any reason not to do this, but this needs tests and rebasing against current develop.

@karyon karyon mentioned this pull request Nov 23, 2016
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