diff --git a/index.js b/index.js index 7aad09e..23525e4 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ -const HappySite = require('./src/happySite.js') +const Siteomat = require('./src/siteomat.js') const fs = require('fs') -class HappySiteWebpackPlugin { +class SiteomatWebpackPlugin { constructor(source, views, options = {}) { @@ -20,7 +20,7 @@ class HappySiteWebpackPlugin { apply(compiler) { - const pluginName = HappySiteWebpackPlugin.name + const pluginName = SiteomatWebpackPlugin.name // webpack module instance can be accessed from the compiler object, // this ensures that correct version of the module is used @@ -37,10 +37,10 @@ class HappySiteWebpackPlugin { this._options.destination = compilation.outputOptions.path } - const happySite = new HappySite(this._source, this._views, this._options) + const happySite = new Siteomat(this._source, this._views, this._options) happySite.run() }) } } -module.exports = HappySiteWebpackPlugin \ No newline at end of file +module.exports = SiteomatWebpackPlugin \ No newline at end of file diff --git a/src/happySite.js b/src/siteomat.js similarity index 98% rename from src/happySite.js rename to src/siteomat.js index b768934..c3dc569 100644 --- a/src/happySite.js +++ b/src/siteomat.js @@ -20,7 +20,7 @@ const configStore = require('./config.js') * @link https://gitea.node001.net/HerrHase/happy-site-webpack-plugin.git * */ -class HappySite { +class Siteomat { /** * @@ -96,4 +96,4 @@ class HappySite { } } -module.exports = HappySite \ No newline at end of file +module.exports = Siteomat \ No newline at end of file