mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-09 10:41:56 +00:00
c9676cac62
* (Reapplied) Upgrade to Webpack 4 * remove yarn.lock from gitignore * add yarn.lock * custom hashing for css and client bundle filenames * add hash-files dep * update deps * add .wwp-cache to .gitignore * use latest git hash as filename hash * remove unused hash-files dep * update favicon plugin * remove yarn.lock
20 lines
428 B
JavaScript
20 lines
428 B
JavaScript
'use strict';
|
|
const chalk = require('chalk');
|
|
|
|
const LogPlugin = function(port) {
|
|
this.port = port;
|
|
this.protocol = process.env.HTTPS ? 'https' : 'http';
|
|
};
|
|
|
|
LogPlugin.prototype.apply = function(compiler) {
|
|
compiler.plugin('done', (compiler, done) => {
|
|
console.log(
|
|
`> App is running at ${chalk.yellow(
|
|
`${this.protocol}://localhost:${this.port}`
|
|
)}\n`
|
|
);
|
|
});
|
|
};
|
|
|
|
module.exports = LogPlugin;
|