How to use the webpack-notifier.prototype function in webpack-notifier

To help you get started, we’ve selected a few webpack-notifier examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github adobe-photoshop / spaces-design / webpack.config.js View on Github external
};

    if (devMode) {
        options.devtool = "inline-source-map";
        options.debug = "true";
        // These lines break the build into two chunks, one for our code, and one for all our dependencies
        // This allows for a faster rebuild time
        options.plugins.push(new webpack.optimize.CommonsChunkPlugin("vendor", "externalDeps.js"));
        options.entry.vendor = ["react", "lodash", "bluebird", "mathjs", "immutable", "fluxxor", "d3"];
    }

    return options;
});

// Hack: add Timestamp to the WebPack build message.
WebpackNotifierPlugin.prototype._compileMessage = WebpackNotifierPlugin.prototype.compileMessage;
WebpackNotifierPlugin.prototype.compileMessage = function (stats) {
    var msg = this._compileMessage(stats);
    
    if (msg === "Build successful") {
        msg += " @ " + (new Date()).toLocaleTimeString();
    }

    return msg;
};

module.exports = buildConfigs;
github adobe-photoshop / spaces-design / webpack.config.js View on Github external
if (devMode) {
        options.devtool = "inline-source-map";
        options.debug = "true";
        // These lines break the build into two chunks, one for our code, and one for all our dependencies
        // This allows for a faster rebuild time
        options.plugins.push(new webpack.optimize.CommonsChunkPlugin("vendor", "externalDeps.js"));
        options.entry.vendor = ["react", "lodash", "bluebird", "mathjs", "immutable", "fluxxor", "d3"];
    }

    return options;
});

// Hack: add Timestamp to the WebPack build message.
WebpackNotifierPlugin.prototype._compileMessage = WebpackNotifierPlugin.prototype.compileMessage;
WebpackNotifierPlugin.prototype.compileMessage = function (stats) {
    var msg = this._compileMessage(stats);
    
    if (msg === "Build successful") {
        msg += " @ " + (new Date()).toLocaleTimeString();
    }

    return msg;
};

module.exports = buildConfigs;

webpack-notifier

webpack + node-notifier = build status system notifications

ISC
Latest version published 2 years ago

Package Health Score

62 / 100
Full package analysis

Popular webpack-notifier functions