italia / design-web-toolkit

Questa libreria è deprecata, si consiglia l'utilizzo di Bootstrap Italia (https://italia.github.io/bootstrap-italia/)
Creative Commons Zero v1.0 Universal
93 stars 87 forks source link

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

Open matteoturra opened 5 years ago

matteoturra commented 5 years ago

Sul web server ho la cartella 'wtk' contenente:

La struttura è:

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)