Skip to content
This repository has been archived by the owner on May 20, 2022. It is now read-only.

template HTML di esempio: ReferenceError: build is not defined #157

Open
matteoturra opened this issue Nov 9, 2018 · 0 comments
Open

template HTML di esempio: ReferenceError: build is not defined #157

matteoturra opened this issue Nov 9, 2018 · 0 comments

Comments

@matteoturra
Copy link

Sul web server ho la cartella 'wtk' contenente:

La struttura è:

  • webroot
    • wtk
      • build
      • IWT.min.js
      • ....
    • index.html

Nella documentazione è riportato di modificare alla riga 63 con il percorso relativo alla webroot
<script>__PUBLIC_PATH__ = '{{ '/build/' | path | replace(".html", "/") }}'</script>

Quindi dovrebbe essere:
<script>__PUBLIC_PATH__ = '{{ '/wtk/build/' | path | replace(".html", "/") }}'</script>
ma da errore: "Uncaught ReferenceError: wtk is not defined"

oppure si sostituisce tutto:
<script>__PUBLIC_PATH__ = '/wtk/build/'</script>
ma comunque vedo errori nel caricamento degli altri file perchè vengono richiesti su path errati:

/wtk/%7B%7B%20'/build/vendor/modernizr.js'%20%7C%20path%20%7D%7D net::ERR_ABORTED 404 (Not Found)
/wtk/%7B%7B%20'/build/vendor/jquery.min.js'%20%7C%20path%20%7D%7D net::ERR_ABORTED 404 (Not Found)
/wtk/%7B%7B%20'/build/build.css'%20%7C%20path%20%7D%7D net::ERR_ABORTED 404 (Not Found)
/wtk/%7B%7B%20'/build/IWT.min.js'%20%7C%20path%20%7D%7D net::ERR_ABORTED 404 (Not Found)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant