Skip to content

Commit

Permalink
fix loading assets in embroider
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Mar 7, 2024
1 parent 2e63c0e commit e81a31f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test-app/ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@ const webpackConfig = {
module: {
rules: [
{
test: /\.(png|svg|jpg|jpeg|gif|webp|woff|woff2|ttf|eot)$/i,
test: function (specifier) {
return !specifier.endsWith('.css') && !specifier.endsWith('.js');
},
issuer: function (issuer) {
if (issuer.endsWith('.css')) {
return true;
}
},
type: 'asset/resource',
},
],
Expand Down

0 comments on commit e81a31f

Please sign in to comment.