Skip to content

Commit

Permalink
docs: add parcel example
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Dec 23, 2019
1 parent 64f9ec1 commit 1bed23f
Show file tree
Hide file tree
Showing 6 changed files with 5,376 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/parcel/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
.cache
20 changes: 20 additions & 0 deletions examples/parcel/file.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions examples/parcel/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body>
<script src="./index.js"></script>
</body>
</html>
3 changes: 3 additions & 0 deletions examples/parcel/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Svg from './file.svg'

console.log(Svg)
8 changes: 8 additions & 0 deletions examples/parcel/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"private": true,
"devDependencies": {
"@babel/core": "^7.7.7",
"@svgr/parcel-plugin-svgr": "^4.3.3",
"parcel-bundler": "^1.12.4"
}
}
Loading

0 comments on commit 1bed23f

Please sign in to comment.