Use asset resources in redux-devtools-app Webpack builds (#1019)

* Use asset resources in redux-devtools-app

* Add folders to .eslintignore
This commit is contained in:
Nathan Bierema 2022-01-16 08:37:49 -06:00 committed by GitHub
parent 2665e2768d
commit 58954c7989
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 6 additions and 23 deletions

View File

@ -1 +1,3 @@
build
dist
umd

View File

@ -94,7 +94,6 @@
"eslint-plugin-jest": "^25.3.4",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"file-loader": "^6.2.0",
"fork-ts-checker-webpack-plugin": "^6.5.0",
"html-loader": "^3.0.1",
"html-webpack-plugin": "^5.5.0",
@ -111,7 +110,6 @@
"ts-node": "^10.4.0",
"tslib": "^2.3.1",
"typescript": "~4.5.4",
"url-loader": "^4.1.1",
"webpack": "^5.65.0",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^4.7.2"

View File

@ -32,18 +32,8 @@ export default (
use: [{ loader: 'style-loader' }, { loader: 'css-loader' }],
},
{
test: /\.(png|gif|jpg)$/,
loader: 'url-loader',
options: {
limit: '25000',
outputPath: 'images/',
publicPath: 'images/',
},
},
{
test: /\.(ttf|eot|svg|woff|woff2)$/,
loader: 'file-loader',
options: { outputPath: 'fonts/', publicPath: 'fonts/' },
test: /\.woff2$/,
type: 'asset/resource',
},
],
},

View File

@ -32,13 +32,8 @@ export default (env: { production?: boolean } = {}): webpack.Configuration => ({
use: [{ loader: 'style-loader' }, { loader: 'css-loader' }],
},
{
test: /\.(png|gif|jpg)$/,
loader: 'url-loader',
options: { limit: '25000' },
},
{
test: /\.(ttf|eot|svg|woff|woff2)$/,
loader: 'url-loader',
test: /\.woff2$/,
type: 'asset/inline',
},
],
},

View File

@ -4547,7 +4547,6 @@ __metadata:
eslint-plugin-jest: ^25.3.4
eslint-plugin-react: ^7.28.0
eslint-plugin-react-hooks: ^4.3.0
file-loader: ^6.2.0
fork-ts-checker-webpack-plugin: ^6.5.0
html-loader: ^3.0.1
html-webpack-plugin: ^5.5.0
@ -4576,7 +4575,6 @@ __metadata:
ts-node: ^10.4.0
tslib: ^2.3.1
typescript: ~4.5.4
url-loader: ^4.1.1
webpack: ^5.65.0
webpack-cli: ^4.9.1
webpack-dev-server: ^4.7.2