Skip to content

bug: Copy operation is not copying the file to a different file name #5956

Closed

Description

@momenelkamri

Prerequisites

Stencil Version

4.21.0

Current Behavior

according the following stenciljs config:

outputTargets: [
    {
      type: 'dist',
      esmLoaderPath: '../loader',
      copy: [{
        src: 'global.scss',
        dest: 'styles/webcomponents.css',
      }],
    },
    {
      type: 'dist-custom-elements',
      customElementsExportBehavior: 'auto-define-custom-elements',
      externalRuntime: false,
    },
    {
      type: 'docs-readme',
    },
    {
      type: 'www',
      serviceWorker: null, // disable service workers
      copy: [{
        src: 'global.scss',
        dest: 'build/styles/webcomponents.css',
      }],
    },
  ],

global.scss is copied into the styles/webcomponents.css folder.

Expected Behavior

global.scss should be copied and renamed to the styles/webcomponents.css file

System Info

No response

Steps to Reproduce

run npm run build
check dist or www folder
You will find that global.scss is not renamed to webcomponents.css but put inside webcomponents.css folder

Code Reproduction URL

https://github.com/momenelkamri/steniljs-test-issue

Additional Information

No response

Activity

  1. christian-bromann commented on Aug 28, 2024

    @christian-bromann
    Member

    This seems to be a regression from #5899

  2. added
    Bug: Validated
    and removed on Aug 28, 2024
  3. Tallyb commented on Oct 8, 2024

    @Tallyb
    Contributor

    Any plans on fixing this?

  4. christian-bromann commented on Oct 8, 2024

    @christian-bromann
    Member

    @Tallyb we would love to see this fixed, would you like to take a stab at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: ValidatedHelp Wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions