Skip to content

Commit 13168f6

Browse files
committed
test: fix regexp for asset resource
1 parent 305dc46 commit 13168f6

44 files changed

Lines changed: 134 additions & 36 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ module.exports = {
164164
use: ['css-loader', 'sass-loader'],
165165
},
166166
{
167-
test: /\.(ico|png|jp?g|svg)/,
167+
test: /\.(ico|png|jpe?g|svg)/,
168168
type: 'asset/resource',
169169
},
170170
],
@@ -403,7 +403,7 @@ module.exports = {
403403
use: ['css-loader', 'sass-loader'],
404404
},
405405
{
406-
test: /\.(ico|png|jp?g|webp|svg)$/,
406+
test: /\.(ico|png|jpe?g|webp|svg)$/,
407407
type: 'asset/resource',
408408
generator: {
409409
filename: 'img/[name].[hash:8][ext][query]',

examples/bootstrap/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module.exports = {
5353
],
5454
},
5555
{
56-
test: /\.(ico|png|jp?g|svg)/,
56+
test: /\.(ico|png|jpe?g|svg)/,
5757
type: 'asset/resource',
5858
generator: {
5959
filename: 'img/[name].[hash:8][ext]',

examples/favicons/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ module.exports = {
5252
use: ['css-loader', 'sass-loader'],
5353
},
5454
{
55-
test: /\.(ico|png|jp?g|svg)/,
55+
test: /\.(ico|png|jpe?g|svg)/,
5656
type: 'asset/resource',
5757
generator: {
5858
filename: 'img/[name].[hash:8][ext]',

examples/hello-world-pug/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = {
3333
use: ['css-loader', 'sass-loader'],
3434
},
3535
{
36-
test: /\.(ico|png|jp?g|svg)/,
36+
test: /\.(ico|png|jpe?g|svg)/,
3737
type: 'asset/resource',
3838
generator: {
3939
filename: 'img/[name].[hash:8][ext]',

examples/hello-world/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = {
3131
use: ['css-loader', 'sass-loader'],
3232
},
3333
{
34-
test: /\.(ico|png|jp?g|svg)/,
34+
test: /\.(ico|png|jpe?g|svg)/,
3535
type: 'asset/resource',
3636
generator: {
3737
filename: 'img/[name].[hash:8][ext]',

examples/integrity/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = {
3838
use: ['css-loader', 'sass-loader'],
3939
},
4040
{
41-
test: /\.(ico|png|jp?g|svg)/,
41+
test: /\.(ico|png|jpe?g|svg)/,
4242
type: 'asset/resource',
4343
generator: {
4444
filename: 'img/[name].[hash:8][ext]',

examples/purgecss-postcss/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = {
5454
],
5555
},
5656
{
57-
test: /\.(ico|png|jp?g|svg)/,
57+
test: /\.(ico|png|jpe?g|svg)/,
5858
type: 'asset/resource',
5959
generator: {
6060
filename: 'img/[name].[hash:8][ext]',

examples/purgecss/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = {
4141
use: ['css-loader', 'sass-loader'],
4242
},
4343
{
44-
test: /\.(ico|png|jp?g|svg)/,
44+
test: /\.(ico|png|jpe?g|svg)/,
4545
type: 'asset/resource',
4646
generator: {
4747
filename: 'img/[name].[hash:8][ext]',

examples/simple-site/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = {
3939
use: ['css-loader', 'sass-loader'],
4040
},
4141
{
42-
test: /\.(ico|png|jp?g|svg)/,
42+
test: /\.(ico|png|jpe?g|svg)/,
4343
type: 'asset',
4444
generator: {
4545
filename: 'img/[name].[hash:8][ext]', // save to file images >= 2 KB

examples/tailwindcss/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = {
3939
use: ['css-loader', 'postcss-loader', 'sass-loader'],
4040
},
4141
{
42-
test: /\.(ico|png|jp?g|svg)$/,
42+
test: /\.(ico|png|jpe?g|svg)$/,
4343
type: 'asset/resource',
4444
generator: {
4545
filename: 'img/[name].[hash:8][ext]',

0 commit comments

Comments
 (0)