Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
3 tasks done
momenelkamri opened this issue Aug 28, 2024 · 3 comments · Fixed by #6020
Closed
3 tasks done

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

momenelkamri opened this issue Aug 28, 2024 · 3 comments · Fixed by #6020
Labels
Bug: Validated This PR or Issue is verified to be a bug within Stencil Help Wanted

Comments

@momenelkamri
Copy link

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

@ionitron-bot ionitron-bot bot added the triage label Aug 28, 2024
@christian-bromann
Copy link
Member

This seems to be a regression from #5899

@Tallyb
Copy link
Contributor

Tallyb commented Oct 8, 2024

Any plans on fixing this?

@christian-bromann
Copy link
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
Labels
Bug: Validated This PR or Issue is verified to be a bug within Stencil Help Wanted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants