vuejs-templates / webpack

A full-featured Webpack + vue-loader setup with hot reload, linting, testing & css extraction.
MIT License
9.7k stars 4.38k forks source link

[TODO] Update template to Webpack 2 #454

Closed LinusBorg closed 7 years ago

LinusBorg commented 7 years ago

Now that webpack 2.2 has been officially release, I think it's time we update this template to this version.

I will track the progress in this issue.

(Bookmark: Migration guide https://webpack.js.org/guides/migrating/)

Additional Points from the top of my head:

Other dependencies to update

Other necessary changes:

anchengjian commented 7 years ago

webpack.DllPlugin is wonderful, hope to use it.

LinusBorg commented 7 years ago

It's under consideration (#436)

patrick91 commented 7 years ago

@LinusBorg I've started working on this, hope it's not a problem :)

LinusBorg commented 7 years ago

Not at all. :)

cschweda commented 7 years ago

Looking forward to this. I've got a webpack/vue project that's waiting for the template upgrade! :)

patrick91 commented 7 years ago

@chris check the PR you can already use it :) On Wed, 25 Jan 2017 at 20:30, Chris Schweda notifications@github.com wrote:

Looking forward to this. I've got a webpack/vue project that's waiting for the template upgrade! :)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vuejs-templates/webpack/issues/454#issuecomment-275223941, or mute the thread https://github.com/notifications/unsubscribe-auth/AAotlY4yND7pXzf0JcnPLK04fzt5YXqtks5rV7DMgaJpZM4LpEWr .

--

Patrick

cschweda commented 7 years ago

Hmmm. Okay, I installedwith Vue cli a few moments ago:

vue init patrick91/webpack#feature/webpack2

npm run dev works great.

However, npm run build and then serve ./dist (with Zeit's serve: https://github.com/zeit/serve) returns a blank screen. No errors in the console. Network tab shows bundles are loading. App element is there in the minified HTML.

I made no edits to the template once I installed it (and ran npm install).

Not sure what to make of this. Anyone else getting a blank screen on the build?

patrick91 commented 7 years ago

Will have a look soon! Thanks ;) On Wed, 25 Jan 2017 at 21:48, Chris Schweda notifications@github.com wrote:

Hmmm. Okay, I installed the vanilla version with Vue cli:

vue init patrick91/webpack#feature/webpack2

npm run dev works great.

However, npm run build and then serve ./dist (with Zeit's serve: https://github.com/zeit/serve) returns a blank screen. No errors in the console. Network tab shows bundles are loading. App element is there in the minified HTML.

I made no edits to the template once I installed it (and ran npm install).

Not sure what to make of this. Anyone else getting a blank screen on the build?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vuejs-templates/webpack/issues/454#issuecomment-275243353, or mute the thread https://github.com/notifications/unsubscribe-auth/AAotlQW7givEkSTsYq_jh5oxSMuSUGQiks5rV8NAgaJpZM4LpEWr .

--

Patrick

servermachine commented 7 years ago

I have the same, blank screen. The manifest, app and vendor.js are included, but no chunks are requested and no injection occurs. I also have no css generated from .vue files.

corbinu commented 7 years ago

Looks like this is in master now :)

yuu2lee4 commented 7 years ago

It seemed like master already upgrade to webpack 2.2.1

myronliu347 commented 7 years ago

What`s the most important improvement in webpack 2

albohlabs commented 7 years ago

You can have a look at the roadmap of webpack2 to see the improvements.