From 4cd962588834254351544c455d4348cb909a05e0 Mon Sep 17 00:00:00 2001 From: Hung Viet Nguyen Date: Wed, 20 Jul 2022 01:42:25 +0700 Subject: [PATCH 1/4] chore: Add reproduce for #9174 --- playground/assets/index.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/playground/assets/index.html b/playground/assets/index.html index a741379e82013e..f4eb70074f32c9 100644 --- a/playground/assets/index.html +++ b/playground/assets/index.html @@ -266,6 +266,14 @@

base64

inline style

use style class

+

from public folder

+ +

inline style

+

use style class

@import

-

inline style

+

+ inline style +

use style class

@import

From d1bb5e99099bbf5f82ebd11bd8efdef0c41602b5 Mon Sep 17 00:00:00 2001 From: Hung Viet Nguyen Date: Wed, 20 Jul 2022 22:06:10 +0700 Subject: [PATCH 3/4] chore: Skip a failed test for missing `base` url in `url` as inline style in DEV mode --- playground/assets/__tests__/assets.spec.ts | 5 ++++- playground/assets/index.html | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/playground/assets/__tests__/assets.spec.ts b/playground/assets/__tests__/assets.spec.ts index 9134a76ab0a357..3e5caf56205664 100644 --- a/playground/assets/__tests__/assets.spec.ts +++ b/playground/assets/__tests__/assets.spec.ts @@ -365,8 +365,11 @@ test('relative path in html asset', async () => { expect(await getColor('.relative-css')).toMatch('red') }) -test('url to public folder', async () => { +test('url() contains file in publicDir, in