Skip to content

Commit

Permalink
docs(examples): update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Nov 12, 2021
1 parent 1a8cc98 commit 9a4cbce
Show file tree
Hide file tree
Showing 12 changed files with 3,553 additions and 57 deletions.
2 changes: 0 additions & 2 deletions examples/parcel/.gitignore

This file was deleted.

20 changes: 0 additions & 20 deletions examples/parcel/file.svg

This file was deleted.

5 changes: 0 additions & 5 deletions examples/parcel/index.html

This file was deleted.

3 changes: 0 additions & 3 deletions examples/parcel/index.js

This file was deleted.

8 changes: 0 additions & 8 deletions examples/parcel/package.json

This file was deleted.

15 changes: 10 additions & 5 deletions examples/webpack/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"name": "svgr-webpack-example",
"name": "@svgr/webpack-example",
"private": true,
"scripts": {
"start": "webpack serve"
},
"devDependencies": {
"@svgr/webpack": "^2.0.0-alpha.26fa501a",
"url-loader": "^1.0.1",
"webpack": "^4.12.0",
"webpack-cli": "^3.0.4"
"@svgr/webpack": "^6.0.0-alpha.2",
"html-webpack-plugin": "^5.5.0",
"webpack": "^5.64.0",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^4.4.0"
}
}
File renamed without changes.
File renamed without changes
File renamed without changes
12 changes: 6 additions & 6 deletions examples/webpack/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')

module.exports = {
mode: 'development',
entry: ['./main'],
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js',
},
module: {
rules: [
{
Expand All @@ -19,4 +14,9 @@ module.exports = {
},
],
},
plugins: [
new HtmlWebpackPlugin({
title: 'Development',
}),
],
}
Loading

0 comments on commit 9a4cbce

Please sign in to comment.