Added svg src directory and Jest transformer #25
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Creates a new SVG src directory for putting project SVGs in, and adds a jest transformer for SVG files. Two reasons for this:
We usually keep SVG in the templates directory at the moment, but often import them into Vue, leading to tricky relative imports. It would be nice to have an alias for referencing them with. As they are shared between Vue and Twig, it seems nicer to keep them in the src folder and reference them either via a webpack alias or twigpack.
I have to recreate the svg transformer I add in this PR in every project (nobody has created an npm package for it yet, amazingly). I could create the package I suppose, but creating a package for five lines of code I didn't write seems a bit off
Type of change
How Has This Been Tested?
Checklist: