From e81a31f76eca4817f4809a3accf9c68d35bdb285 Mon Sep 17 00:00:00 2001 From: Chris Manson Date: Thu, 7 Mar 2024 16:44:08 +0000 Subject: [PATCH] fix loading assets in embroider --- test-app/ember-cli-build.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test-app/ember-cli-build.js b/test-app/ember-cli-build.js index 6c7eac2..d963cea 100644 --- a/test-app/ember-cli-build.js +++ b/test-app/ember-cli-build.js @@ -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', }, ],