2 ms·
You jumped in the deep end without knowing how to swim. You're starting a new project, with new technologies and you tried to use the most complex stack from d
by WickyNilliams 10y ago
You jumped in the deep end without knowing how to swim.
You're starting a new project, with new technologies and you tried to use the most complex stack from day 1. It's a classic mistake people make with React projects. You don't need webpack, you don't need hot reloading etc (at least not to start with), you don't need a boilerplate.
Go with browserify at first. It's simple and can be migrated to webpack later. To setup browserify?
browserify in.js -o out.js -t babelify
And you're done! Add --debug flag for source maps. Want to setup a watcher with caching in dev for speedy builds? `npm install watchify` and swap out browserify.
When you need bundle splitting, async module loading, and all the other stuff you can do with webpack, then you can easily migrate from browserify.
Don't jump in the deep end without knowing how to swim.
- deleted 10y ago[deleted]