html-bundler-webpack-plugin
Version:
Generates complete single-page or multi-page website from source assets. Built-in support for Markdown, Eta, EJS, Handlebars, Nunjucks, Pug. Alternative to html-webpack-plugin.
45 lines (37 loc) • 977 B
JavaScript
const path = require('path');
class Config {
static
static
static
// plugin name, must be same as node module name
pluginName: 'webpack-plugin',
// label in terminal output from plugin
pluginLabel: 'plugin',
// label in terminal output from loader
loaderLabel: 'loader',
};
static init(file) {
// initialize only once
if (!this.
this.
? require.resolve(file)
: // path relative to `./src/Common`
require.resolve(path.join('../', file));
}
}
static get() {
// lazy load config data
if (!this.
this.
}
return this.
}
static
if (this.
let config = require(this.
this.
this.
}
}
}
module.exports = Config;