TrySound / rollup-plugin-string

Converts text files to modules
MIT License
85 stars 13 forks source link

replacement feature #17

Closed munrocket closed 2 years ago

munrocket commented 5 years ago

Minifiers not works with strings

TrySound commented 5 years ago

This feature can be implemented as another plugin. This one does one thing - converts file content to module. All optimisations should be done by prior plugins.

munrocket commented 5 years ago

@TrySound do you have an example that works for all entire file or with exported strings only? I think this is good suggest. Feature with replace EOL should be out of the box.

munrocket commented 5 years ago

8 basically the same

munrocket commented 5 years ago

@TrySound Ok, I replaced \n but I also want to remove spaces in my css and svg. This problem don't have good solution without this PR or some similar improvement.