fix(webpack): assets should not be treaded as esModule (#6861)
This commit is contained in:
@@ -31,7 +31,17 @@ const baseRules = [
|
||||
},
|
||||
},
|
||||
{ test: /\.(txt|yaml)$/, loader: "raw-loader" },
|
||||
{ test: /\.(png|jpg|jpeg|gif|svg)$/, loader: "url-loader" },
|
||||
{
|
||||
test: /\.(png|jpg|jpeg|gif|svg)$/,
|
||||
use: [
|
||||
{
|
||||
loader: "url-loader",
|
||||
options: {
|
||||
esModule: false,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
test: /\.(woff|woff2)$/,
|
||||
loader: "url-loader?",
|
||||
|
||||
Reference in New Issue
Block a user