Closed birkir closed 6 years ago
@birkir This is awesome, thank you for getting this started. Just a question - With the new production mode, can't we also take out a lot of the isProduction
code in the configFactory
, like the minimizing and uglifying the code?
And once we upgrade to Babel 7, we would be all caught up and with simplified config!
@birkir, hi. Are you succeed to run this? I'm gettting stuck after this:
WEBPACK: Creating a development bundle configuration for the "client"
(node:8645) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
@oyeanuj That was the plan! @newsiberian This is just a warning. Inevitable we still have to use HappyPack for multi-threaded bundling. Everything works fine.
Awesome! Thanks so much for this!
Also getting this many times:
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added. Use emitter.setMaxListeners() to increase limit
Catched here
I think all of your reported errors are not related to this PR.
We could definitely do some work on async things, like use import()
for native webpack code splitting etc. But step 1 is getting webpack 4 in, then get feedback so we can incrementally get closer.
Thanks
👏
@birkir @sergiokopplin Is code splitting still working for you after this PR? If yes, could you share the config that you have for chunking?
hey @oyeanuj, i need testing first, i`m not using that yet
This pull-request upgrades webpack and hot-module-reload respectively to the major version 4.
When this has been validated and merged, we can continue to add and benefit from new features in Webpack 4 that we currently don't have enabled.