petehunt / webpack-howto

10.11k stars 696 forks source link

Examples #2

Closed jeffling closed 10 years ago

jeffling commented 10 years ago

How do you feel about a folder where people can submit fully working examples for different things, like working with 3rd party libraries, fonts, etc?

Would be kind of messy to manage maybe :)

petehunt commented 10 years ago

I would certainly take a PR for that. I threw this repo together in half an hour so I didn't have time for it :)

Would be nice to have them automatically tested too.

nelix commented 10 years ago

I made an example of live reloading a chrome extension that uses webpack and gulp. I could not get it livereloading with the webpack dev server or work out how to get webpack to copy the manifest file however so I had to use gulp. https://github.com/nelix/fluxxor-react-chrome-boilerplate

Would you be interested in a PR containing this or some cut down variant? It also shows unrelated things like using flux across background/content script bounds.

petehunt commented 10 years ago

I'm not sure if that will fit in the readme at this point, but if you want to document it as a separate thing we can create an examples dir and check it in there.

newtriks commented 10 years ago

+1 on this, I think a solid example of a typical single page application configured with a comprehensive webpack.config would help clarify the steps in the readme. I am leaning more and more towards eradicating a build system as @petehunt mentions in his talk (or at least removing as many moving parts as possible). But to do this involves trial and error which I'm assuming devs adopting webpack and react etc have already learnt from and could save hours of frustration for devs looking into this workflow. So maybe a simple app repos could be a start? Cheers @petehunt

petehunt commented 10 years ago

fineeeeee. doing this now :P

newtriks commented 10 years ago

LOL, I feel like a nagging child now :P

petehunt commented 10 years ago

Started this here. Still needs work, but should be a start 1d19fc3dc3e807878b34a45cb6f711b17d073f62

newtriks commented 10 years ago

You da man thanks!

jeffling commented 10 years ago

@petehunt I made a little template at https://github.com/jeffling/angular-webpack-example. Would that be useful to link or does it have too many non-webpack things?