Giter Site home page Giter Site logo

Comments (11)

jedwards1211 avatar jedwards1211 commented on May 19, 2024

Actually it's not a huge deal about the Meteor Collections. When you see that exception in the console you can just refresh the page. I'll see about updating this project setup later today

from meteor-webpack-react.

AdamBrodzinski avatar AdamBrodzinski commented on May 19, 2024

Awesome. I'm creating a new project today so i'm eager to see how to do it. I was confused on how to have multiple output points. Reading the webpack docs cover to cover at the moment.

I really appreciate all the work you put into this! 🍻

from meteor-webpack-react.

jedwards1211 avatar jedwards1211 commented on May 19, 2024

Oh, haha, interestingly enough I just ran two separate instances of webpack, since I haven't experimented with multiple entry points either.

from meteor-webpack-react.

jedwards1211 avatar jedwards1211 commented on May 19, 2024

Okay, I just pushed a new version that runs all of the server code via webpack as well! And I incorporated the --production flag. Let me know how it goes!

from meteor-webpack-react.

AdamBrodzinski avatar AdamBrodzinski commented on May 19, 2024

Oh, haha, interestingly enough I just ran two separate instances of webpack, since I haven't experimented with multiple entry points either.

Haha, that's one way to skin a cat! Cool! I was able to get separate files to come out but they were in the same root folder and both were sent to the client 😦 I think this might be solved with a plugin but running two webpack servers will be best for now I think.

from meteor-webpack-react.

AdamBrodzinski avatar AdamBrodzinski commented on May 19, 2024

Mother of God...... This is everyone i've ever wanted and more....

giphy

Too bad most of the Meteor community (at least on the forums) is so dogmatic 😦

from meteor-webpack-react.

grigio avatar grigio commented on May 19, 2024

@jedwards1211 Very nice webpack server part, will https://github.com/petehunt/webpack-require avoid 2 webpack servers?

from meteor-webpack-react.

jedwards1211 avatar jedwards1211 commented on May 19, 2024

@grigio I don't know, that's very interesting. Technically I wasn't running two instances of webpack, but rather, one instance of webpack (for the server) and one instance of webpack-dev-server (for the client). The thing I don't know is if I also served up the server bundle via webpack-dev-server, if it would even be possible to get that bundle into the Meteor server, because as far as I understand webpack-dev-server serves everything from memory.

There's an interesting thread about this here: webpack/webpack-dev-server#62

from meteor-webpack-react.

jedwards1211 avatar jedwards1211 commented on May 19, 2024

@AdamBrodzinski hahaha, yeah, I like this setup a lot. Now the only thing lacking in my mind is source maps in node for the server bundle. But that may be possible too: https://github.com/evanw/node-source-map-support. I'll open another issue about trying to figure out server-side source maps someday

from meteor-webpack-react.

trusktr avatar trusktr commented on May 19, 2024

@AdamBrodzinski Sorry for the really late reply! Things have changed recently. I'm using Meteor 1.3 modules now. So far it has served my needs that I haven't been desprate enough to try webpack:webpack (I deprecated rocket:module in favor of modules).

from meteor-webpack-react.

AdamBrodzinski avatar AdamBrodzinski commented on May 19, 2024

@trusktr no worries! Yeah I think moving forward 1.3 and maybe the hotloading (via babel) would be the best bet. Modules was my number one priority. I'm still using this package in a prod app though... works great! (though I don't feel the itch to keep it up to date/synced... my setup hasn't changed much lol).

from meteor-webpack-react.

Related Issues (20)

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.