webpack-simple
webpack-simple copied to clipboard
Switch to stage-2 to support code-splitting
Some Vue.js evangelists (pun to @TheLarkInn) love to communicate about how easy it is to use webpack code-splitting with Vue. So it would be nice to support it out-of-the-box in this template, by switching babel-preset-stage-3 to babel-preset-stage-2 that includes syntax-dynamic-import.
Uhm why is that necessary? Doesn't Webpack replace the import with its own stuff anyway?
Well, you will still have a babel syntax error.
Oh right, of course.