GithubHelp home page GithubHelp logo

Comments (11)

GiancarlosIO avatar GiancarlosIO commented on July 18, 2024 9

👀

from parallel-webpack.

MartinFalatic avatar MartinFalatic commented on July 18, 2024 2

Is this project still active? I see that the last commit was almost 1-1/2 years ago.

If this project is in fact defunct, what's the replacement?

from parallel-webpack.

pago avatar pago commented on July 18, 2024 2

Is this project still active? I see that the last commit was almost 1-1/2 years ago.

If this project is in fact defunct, what's the replacement?

None of the original authors still work at trivago. With all of the improvements in Webpack through the last years, the advantage of parallel builds has been reduced to the point where trivago stopped using this project entirely.

I'd recommend using Webpack directly. In most cases that should be good enough.

from parallel-webpack.

Defite avatar Defite commented on July 18, 2024 1

This only occurs if you're using a string reference to your stats.
e.g. stats: "minimal".

If you change this to

stats: {
    preset: "minimal"
}

It will build with webpack 5. 🎉

It will not, obviously. Webpack stats config doesn't have preset key and leaving stats with minimal value still leads to that presetToOptions error.

from parallel-webpack.

zhongzhong0505 avatar zhongzhong0505 commented on July 18, 2024

any updates?

from parallel-webpack.

lfalke avatar lfalke commented on July 18, 2024

I gave this a try and webpack 5 worked as expected with parallel-webpack. Just make sure to follow the migration guide and update all webpack-related dependencies.
https://webpack.js.org/migrate/5/

from parallel-webpack.

Derbdale avatar Derbdale commented on July 18, 2024

Doesn't work with stats because presetToOptions should be replaced with compilation.createStatsOptions

from parallel-webpack.

culshaw avatar culshaw commented on July 18, 2024

This only occurs if you're using a string reference to your stats.
e.g. stats: "minimal".

If you change this to

stats: {
    preset: "minimal"
}

It will build with webpack 5. 🎉

from parallel-webpack.

Defite avatar Defite commented on July 18, 2024

Doesn't work with stats because presetToOptions should be replaced with compilation.createStatsOptions

But you can't, because presetToOptions was static method of Stats class and createStatsOptions is not static method in Compilation class.

from parallel-webpack.

guerrero avatar guerrero commented on July 18, 2024

@Defite I've been reviewing the Webpack config and it seems the config @culshaw has shared is valid. stats accepts a boolean, a string or a StatsOptions object and this type can has an optional preset key as you can see in the type definition file from webpack repo.

I've tried this config using parallel-webpack and it has worked as expected.

from parallel-webpack.

imaegoo avatar imaegoo commented on July 18, 2024

Solved by changing stats from 'none' to false.

https://webpack.js.org/configuration/stats/#stats-presets

from parallel-webpack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.