Skip to content

bug: watch build does not copy files on outputtarget www #4980

Closed

Description

@Famoose

Prerequisites

Stencil Version

4.6.0

Current Behavior

On "stencil build --dev --watch --serve" with files to copy in for example /dev folder. It does not copy them after the hot reload.

stencil.config.ts:

  {
      type: 'www',
      serviceWorker: null, // disable service workers
      copy: [{src:'dev/**/*.html', dest:'.', keepDirStructure: true}]
    },
[38:22.1]  rebuild, project, dev mode, started ...
[38:22.1]  transpile started ...
[38:22.1]  transpile finished in 3 ms
[38:22.1]  generate lazy + source maps started ...
[38:22.2]  generate lazy + source maps finished in 133 ms
[38:22.3]  rebuild finished, watching for changes... in 146 ms
<- the copy task is missing

Maybe it's a windows problem, we have spotted the error on multiple windows machines, but on Unix file system it seems to work.
We did upgrade from stencil 2.x and with 4.6 it's not working anymore. So the issue may be in previous versions too.

Expected Behavior

on file changes the file should be reflected in the /www folder

System Info

System: node 20.8.0
    Platform: windows (10.0.19045)
   CPU Model: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 cpus)
    Compiler: C:\dev\projects\sten-starter\node_modules\@stencil\core\compiler\stencil.js        
       Build: 1698073283
     Stencil: 4.6.0
  TypeScript: 5.2.2
      Rollup: 2.42.3
      Parse5: 7.1.2
      Sizzle: 2.42.3
      Terser: 5.22.0

Steps to Reproduce

Code Reproduction URL

https://github.com/Famoose/sten-starter

Additional Information

No response

Activity

  1. self-assigned this
    on Oct 25, 2023
  2. added
    Bug: Validated
    on Oct 25, 2023
  3. added a commit that references this issue on Nov 9, 2023
    d7d1f7b
  4. rwaskiewicz commented on Nov 9, 2023

    @rwaskiewicz
    Member

    @Famoose Thanks for your patience!

    Can you do me a favor and give the following dev build of Stencil a try when you get a chance?

    npm i @stencil/[email protected]
    
  5. added a commit that references this issue on Nov 10, 2023
    bb0b1d4
  6. tanner-reits commented on Nov 13, 2023

    @tanner-reits
    Contributor

    The fix for this went out as a part of today's v4.7.2 release!

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

Metadata

Metadata

Assignees

Labels

Bug: Validated

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions