Coder Social home page Coder Social logo

Comments (7)

richardscarrott avatar richardscarrott commented on June 23, 2024 3

@DylanPiercey you'll need to apply the plugin to the the multi compiler returned from webpack, e.g. https://github.com/60frames/react-boilerplate/blob/master/server/routes/webpack.js#L20

const multiCompiler = webpack([config1, config2]);
multiCompiler.apply(new FriendlyErrorsWebpackPlugin());

from friendly-errors-webpack-plugin.

geowarin avatar geowarin commented on June 23, 2024 1

Hi @richardscarrott, I'll accept any PR with tests 😄
Thanks for taking the time to document this issue!

from friendly-errors-webpack-plugin.

DylanPiercey avatar DylanPiercey commented on June 23, 2024 1

What does the config look like to use this with a multi compiler? Do I add the plugin to both compilers?

from friendly-errors-webpack-plugin.

richardscarrott avatar richardscarrott commented on June 23, 2024

Okay, I've discovered applying the plugin to both compilers separately doesn't really work because the console may read 'DONE' because the most recent compilation succeeded but it obviously doesn't take into account the other compilation which may still be in an error state.

Would you be open to a PR for this?

from friendly-errors-webpack-plugin.

geowarin avatar geowarin commented on June 23, 2024

Fixed in #9

from friendly-errors-webpack-plugin.

DylanPiercey avatar DylanPiercey commented on June 23, 2024

@richardscarrott awesome - thanks! Gonna try this out now.

from friendly-errors-webpack-plugin.

DylanPiercey avatar DylanPiercey commented on June 23, 2024

It works perfectly :D.

from friendly-errors-webpack-plugin.

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.