You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used this project and it worked great for simplifying a source plugin where the file names by necessity must change. However, I don't think this will work as well in cases where files with multiple extensions might match or in asset pipeline plugins where the file can be modified but keep it's same name.
My hack was to provide inExt and outExt extensions that wouldn't match the provided files to bypass the extension handling, but it would be nice to have an option to either turn off the mapping or provide a programmatic way to select an extension on a per-file basis.
The text was updated successfully, but these errors were encountered:
The modules that I've been working on (html minification and image optimization) behave very similarly to source plugins: you take a file, optimize it, and then write it one for one into the output staging directory.
I wrote the JavaScript for these modules to behave take the same input and output that the JavaScript in the source plugin module would take. There didn't seem to be any compelling reason to make them different. And if they are using the same parameters, then using the transpiler to move files around makes a lot of sense.
Just an idea. The code isn't too hard to write one way or another.
I used this project and it worked great for simplifying a source plugin where the file names by necessity must change. However, I don't think this will work as well in cases where files with multiple extensions might match or in asset pipeline plugins where the file can be modified but keep it's same name.
My hack was to provide inExt and outExt extensions that wouldn't match the provided files to bypass the extension handling, but it would be nice to have an option to either turn off the mapping or provide a programmatic way to select an extension on a per-file basis.
The text was updated successfully, but these errors were encountered: