Skip to content

How to have the app.HASH.js being automatically referenced in the index.html? #144

Closed

Description

@ClemRz

Hi!

I'm quite new using re-frame so please pardon me if my question is either stupid or already answered.

I added the flag :module-hash-names true in the build of my app so I don't have to invalidate caches when deploying.

The thing is that in the resources/public/index.html, the app.js is referenced statically. When I open it there is a GET .../public/js/compiled/app.js net::ERR_FILE_NOT_FOUND exception in the browser's console.

<script src="js/compiled/app.js"></script>

Please can anyone help me understand what step am I missing in the release process?

Activity

  1. ClemRz commented on Nov 3, 2020

    @ClemRz
    Author

    I think I found a solution for this: https://clojurians-log.clojureverse.org/shadow-cljs/2018-03-23

    Too bad it is not better integrated into the framework.

  2. locked and limited conversation to collaborators on Mar 29, 2021
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions