Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benefits of writing file to disk after webpack finished running? #3

Open
fed opened this issue Feb 6, 2017 · 2 comments
Open

Benefits of writing file to disk after webpack finished running? #3

fed opened this issue Feb 6, 2017 · 2 comments

Comments

@fed
Copy link
Owner

fed commented Feb 6, 2017

Shall we write the file to disk only after Webpack finished bundling our code? We could make use the compiler done callback as noted here on the official docs.

function HelloWorldPlugin(options) {
  // Setup the plugin instance with options...
}

HelloWorldPlugin.prototype.apply = function(compiler) {
  compiler.plugin('done', function() {
    console.log('Hello World!'); 
  });
};

module.exports = HelloWorldPlugin;
@fed fed self-assigned this Feb 6, 2017
@vitaliyhayda
Copy link

yes! please do it

@vitaliyhayda
Copy link

vitaliyhayda commented May 1, 2018

also - please create full path directories recursively, not only one level

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants