ardatan / meteor-webpack

https://medium.com/@ardatan/meteor-with-webpack-in-2018-faster-compilation-better-source-handling-benefit-from-bc5ccc5735ef
MIT License
123 stars 29 forks source link

Possible to build client side to static files, and run the meteor server side separately? #32

Closed sebastian-ruiz closed 6 years ago

sebastian-ruiz commented 6 years ago

I would like to compile the client side to static files so that I can bundle them in a chrome extension. I would then like to run the meteor server on its own. I thought that this project would help me do this, but I am not sure how.

I can compile the react example with webpack by doing npx webpack --config webpack.config.js but running the index.html page gives me the error Uncaught ReferenceError: Package is not defined.

ardatan commented 6 years ago

I am sorry but this package runs inside Meteor CLI.(meteor command, not webpack command). If you want to have seperate client project, you should check out meteor-client-bundler