Skip to content

ClientAssets package beta not behaving as expected #42472

Closed
@MarkStega

Description

@MarkStega

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

@javiercn I've implemented the section of your blog post about the ClientAssets beta that follows the "Reusing MsBuild code" to just try to build my css

  1. In the blog post most of the first 'PropertyGroup' elements have improper closures, nothing serious that isn't easy to fix

  2. When I run a build I see the 'npm install' run followed by my commands to build css, but then the 'npm install' runs again as does the build command, this time with an output parameter added to the npm command

1>> [email protected] buildStaticWebAssetsCSS
1>> npm run build-css2&&npm run build-min-css2&npm run build-material-css2 "-o" "C:\\Solutions\\OHI\\Material.Blazor\\Material.Blazor\\obj\\Debug\\net6.0\\clientassets/"
  1. To have separated css/js builds is it simply replicating the target NpmRunBuild step, changing files as needed?

Expected Behavior

I don't expect the duplicate 'runs' of npm & build

Steps To Reproduce

See bug description

Exceptions (if any)

No response

.NET Version

6.0.301

Anything else?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions