Skip to content

Commit

Permalink
Merge pull request #623 from gregberge/webpack
Browse files Browse the repository at this point in the history
Support webpack 5
  • Loading branch information
gregberge committed Nov 12, 2021
2 parents a857bb1 + 9a4cbce commit fe5c117
Show file tree
Hide file tree
Showing 15 changed files with 3,603 additions and 97 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',
}),
],
}

1 comment on commit fe5c117

@vercel
Copy link

@vercel vercel bot commented on fe5c117 Nov 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.