Coder Social home page Coder Social logo

event-hooks-webpack-plugin's People

Contributors

cascornelissen avatar dependabot[bot] avatar felixhao28 avatar realtomaszkula avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

event-hooks-webpack-plugin's Issues

Not compatible with webpack 4

I'm currently reworking this plugin to support the new plugin interface introduced in webpack 4. The new version of this plugin will be released as 2.0.0 and will not be compatible with webpack versions lower than 4.

How to log after the last webpack output line?

I tried to add hook with event-hooks-webpack-plugin on done event.

This hook prints the log line but my log line isn't the last line in the output.
he assets table and build warnings come after log line produced by my EventHooksPlugin instance;

My EventHooksPlugin instance is the last in plugins: webpack config section.

new EventHooksPlugin({
    done: () => {
        console.log('__TEST__ done');
    },
}),

How can I change code to ensure my '__TEST__ done' line is last in entire webpack output?

beforeCompile hook gets called twice at the start

Hey, I love this plugin.

Do you have any idea why the beforeCompile hook gets called twice at the start?

I have this config

module.exports = {
  watch: true,
  stats: false,
  plugins: [
    new EventHooksPlugin({
      beforeCompile() {
        console.log('⏳  Compiling...')
      },
  ],
}

And each time I start the application, it gets called twice. Is this webpack's fault?

Screenshot 2020-04-27 at 19 05 48

Accessing errors in `done` event

Hey there

This plugin is doing almost exactly as I want. However, I am trying to figure out how to get at the stats error list, but I am not having much success

My setup is as follows

new EventHooksPlugin({
        done: stats => {
          console.log(stats) // <-- need to access the stats.errors here but it is always `undefined`
          exec('./tasks/build.sh', (err, stdout, stderr) => {
            if (stdout) process.stdout.write(stdout)
            if (stderr) process.stderr.write(stderr)
          })
        }
      })

The webpack docs state the stats response should include errors object, but again, it is undefined

Done callback includes stats

Stats Object should include errors

I have logged the stats result, but it does not include any errors object?

What I am specifically looking for is the ability to call my exec script ONLY if the compiler did not have any errors. Is there another way of getting this to happen

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.