decaporg / one-click-hugo-cms

Hugo template with Decap CMS
https://master-template-one-click-hugo-cms.netlify.app
MIT License
493 stars 301 forks source link

404 for app.js #187

Open gp-dublincentral opened 5 years ago

gp-dublincentral commented 5 years ago

- Do you want to request a feature or report a bug? Report a bug

- What is the current behavior? There's a reference to app.js that is generating a 404

- If the current behavior is a bug, please provide the steps to reproduce. Deploy https://github.com/netlify-templates/one-click-hugo-cms to Netlify Access the homepage the bottom of the homepage source contains the following HTML

<script src="/app.js"></script> but that file generates a 404

See fresh deploy here https://quizzical-aryabhata-bec172.netlify.com/ this is the file it tries to load https://quizzical-aryabhata-bec172.netlify.com/app.js

- What is the expected behavior? Either the reference should not be there or the file should be. There is an app.js in the git repo, I presume this is what should be in the dist folder https://github.com/netlify-templates/one-click-hugo-cms/blob/master/src/js/app.js

- Please mention your node.js, NPM, Hugo and operating system version. Just deployed https://github.com/netlify-templates/one-click-hugo-cms to Netlify

erquhart commented 5 years ago

Thanks for opening! If you're up for taking a swing at this we'd definitely be open to a PR to fix.

gp-dublincentral commented 5 years ago

Pull request submitted

raphink commented 3 years ago

https://github.com/netlify-templates/one-click-hugo-cms/pull/192 for the record @erquhart