Skip to content

Yarn build --debug --livereload --watch causes assets to become increasingly nested upon rebuild #21

@conoremclaughlin

Description

@conoremclaughlin

Thanks again for the preset and all the help to the community!

What is the issue?
Upon rebuilding, webpack will recursively nest the assets folder with each rebuild. This causes livereload to break for images and newer JS files.

Screenshot 2020-11-24 at 1 30 52 PM

Expected behavior
Everything should be rebuilt and remain within the top-level build/ directory so live reloading works properly and doesn't point at the wrong asset files. In the case of copying over images or other static assets, after the first rebuild, the browser will throw an error stating it is unable to find the specified assets in the manifest.

Steps to reproduce

  1. Check out this repo
  2. yarn install
  3. yarn build --debug --livereload --watch
  4. Edit any source file watched for a meaningful change
  5. Check build/ directory to see the nested folder structure

Will be digging more into the cause. Thanks for any help :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions