From 3f7c3e808d0c9c6c4536a50a789565e5ef6571ce Mon Sep 17 00:00:00 2001 From: inottn Date: Sun, 17 Nov 2024 14:12:33 +0800 Subject: [PATCH] fix --- .github/workflows/get-runner-labels.yml | 2 +- crates/rspack_plugin_extract_css/src/plugin.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/get-runner-labels.yml b/.github/workflows/get-runner-labels.yml index 1e9b9f5545e1..8afb665ca821 100644 --- a/.github/workflows/get-runner-labels.yml +++ b/.github/workflows/get-runner-labels.yml @@ -22,7 +22,7 @@ on: jobs: main: name: Get Runner Labels - runs-on: [self-hosted, Linux, ci] + runs-on: ubuntu-latest outputs: LINUX_RUNNER_LABELS: ${{ steps.run.outputs.LINUX_RUNNER_LABELS }} MACOS_RUNNER_LABELS: ${{ steps.run.outputs.MACOS_RUNNER_LABELS }} diff --git a/crates/rspack_plugin_extract_css/src/plugin.rs b/crates/rspack_plugin_extract_css/src/plugin.rs index 9ecc6a9f2cb1..228996e58f61 100644 --- a/crates/rspack_plugin_extract_css/src/plugin.rs +++ b/crates/rspack_plugin_extract_css/src/plugin.rs @@ -315,7 +315,7 @@ impl PluginCssExtract { let mut source = ConcatSource::default(); let mut external_source = ConcatSource::default(); - let (filename, _) = compilation.get_path_with_info(filename_template, path_data)?; + let (filename, asset_info) = compilation.get_path_with_info(filename_template, path_data)?; for module in used_modules { let content = Cow::Borrowed(module.content.as_str()); @@ -412,7 +412,7 @@ impl PluginCssExtract { RenderManifestEntry::new( Arc::new(external_source), filename, - AssetInfo::default(), + asset_info, false, false, ),