-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to Webpack #230
Comments
@jmeas You have plans for adding webpack? Any links to a site using this boilerplate with webpack? |
Maybe, not sure yet. Gotta do some research when I've got time.
Nope. |
I'll likely switch to webpack if it:
|
Some history:
My decision to stay away from Webpack was likely just because it's pretty tough to get set up on. But figuring out the maze of build tools I'm using now is certainly no simple task! If Webpack can untangle all of this mess, then by all means I should use it. |
The last remaining issue is replacing Browserify with Webpack for the browser spec runner. I was having one issue where it was difficult to get Webpack to take multiple entry points and concatenate them. I added I thought it might be that that that option must make it a never-ending stream, so it never gets past it, but I think it's that |
I might be able to achieve this with dynamic requiring. In pseudocode: // test/setup/browser.js
// Get an array of test file names
var tests = resolveAllTestFiles();
tests.forEach(filename => require(filename)); No idea if this is possible...but it probably is, because Webpack is insane. |
For live reloading, |
I fixed the problem with Is there a way to get webpack working with If none of this ends up working, and I must stick with Browserify, then the next steps would be figuring out to get browserify to support module proxying. |
Another route to try with Webpack is the developer server. This would basically move me 100% off of Gulp for the browser tests, but maybe that's okay? One concern is how to make listing work as the user changes files. |
Nice. The last missing piece I needed was Pretty excited! |
Done! |
@jmeas I've just installed the latest version but I still get the |
Nvm, my fault, just seen it's in the v6 branch! |
Hey @alex88 , this is a technicality, but that's not an error, just a warning. Esperanto is great! I'm still using it on a few projects I haven't migrated over yet. Sorry for the slow release of v6; I'm balancing life and work 🙂. Feel free to help out if you've got time! |
Esperanto and Rollup rely on Acorn, which doesn't seem like a tool that is likely to support as many features as Babel (for instance, stage 0 proposals). Perhaps it's time to look into other module loaders (webpack?) to see if any exist that offer full Babel support.
Ref #218
Todo:
A few things left to do for browser tests:
Prevent double lintingnvm this wasn't happening. I was misinterpreting the command line outputThe text was updated successfully, but these errors were encountered: