Looks like inline-css module doesn't work as a CLI. If you use a CLI like inliner , then you can add something like this to npm scripts : scripts : { "inline" : "inliner files/example.html" } Further you can use pre and post hooks to know when it starts and finishes.