cascornelissen / svg-spritemap-webpack-plugin

SVG spritemap plugin for webpack
MIT License
207 stars 50 forks source link

svg4everybody not added if entry is .ts file #140

Closed kareljan closed 3 years ago

kareljan commented 3 years ago

svg4everybody seems not to be added if your entry is a typescript file. svg4everybody should be added to the .js output no? Or am I missing something?

cascornelissen commented 3 years ago

It should at least add the file but I'm not sure what happens when the TS compiler parses it. I'm gonna need a bit more information (that's why there's a template when you create an issue). Feel free to look into it yourself and submit a PR or if you're able to set up a small repository with the required setup (Webpack, TS, this plugin) I'll have a look into what's really happening internally.

Also, the default value for this option is false so be sure to set that to true.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.