Giter VIP home page Giter VIP logo

Comments (4)

gaearon avatar gaearon commented on July 19, 2024

Now that I think of it, this doesnโ€™t look right at all:

<script type="text/javascript" src="/static/js/bundle.js"></script></body>

The tool has been generating HTML with hashed filenames (e.g. /static/js/main.1223cbe1.js) since the very first version. Did you create that HTML file manually?

When you run npm run build with homepage set, you should see these instructions:

screen shot 2016-08-03 at 15 41 28

What you deployed seems like development bundle which is unoptimized.

What you should have deployed is the contents of the build folder, like described in the instructions. This is why it didnโ€™t work.

We added a new message to help clarify this, which will be visible in the next version:

screen shot 2016-08-03 at 15 45 14

Do you think this helps convey the message that index.html and static/js/bundle.js from dev server should not be deployed directly?

from donut.

cdaringe avatar cdaringe commented on July 19, 2024

hey @gaearon!

  • first of, all, amazing that you took the time to debug this. thanks.
  • "we could have resolved this without ejecting". absolutely. ejecting is only a temp fix. i planned on diagnosing the issue further and reporting out on it, but exhausted my small timebox. we intend to revert our eject commit(s). We tagged all eject related commits with a๐Ÿ”ง emoji, and thus intended to rebase + drop them once we solved the problem!
  • this history issue is most likely our problem. thank you! it was right there in the README. we will patch shortly.
  • the current deployment, as you observed, is incorrect. it is a product of my incomplete troubleshooting. please disregard its known naughty, not-per-the-instructions state.
    • your messages & warnings are top notch--i violated them intentionally thinking that a webpack plugin may have been at fault for not rendering my content.
  • lastly, unrelated, VisualBasic was great. I'm glad you gave it props in that nodeup podcast a ways back. I finally got around to listening and was happy to hear your defense of VB, as I have ~= the same story.

thx again. we will report back and close the issue out when work resumes on this project later in the week.

from donut.

gaearon avatar gaearon commented on July 19, 2024

๐Ÿ‘ Please let me know if you have any issues in the future!

from donut.

cdaringe avatar cdaringe commented on July 19, 2024

that did the trick. thanks @gaearon!

from donut.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.