Closed LinusBorg closed 7 years ago
webpack.DllPlugin
is wonderful, hope to use it.
It's under consideration (#436)
@LinusBorg I've started working on this, hope it's not a problem :)
Not at all. :)
Looking forward to this. I've got a webpack/vue project that's waiting for the template upgrade! :)
@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
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?
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
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.
Looks like this is in master now :)
It seemed like master already upgrade to webpack 2.2.1
What`s the most important improvement in webpack 2
You can have a look at the roadmap of webpack2 to see the improvements.
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:
resolve.root
,resolve.fallback
,resolve.modulesDirectories
to `resolve.modulesresolveLoader
resolve.extensions
rename module.loaders
tomodule.rules
babel
->babel-loader
)use: [...]
sourcemap: true
to UglifyJSPlugin in prod config, remove warnings (auto false now)Other dependencies to update
Other necessary changes:
modules: false
in.babelrc
to let webpack handle ES6 modules syntax