htmlgaga
Version:
Manage non-SPA pages with webpack and React.js
29 lines (25 loc) • 1.13 kB
TypeScript
/**
* Copyright 2020-present, Sam Chen.
*
* Licensed under GPL-3.0-or-later
*
* This file is part of htmlgaga.
htmlgaga is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
htmlgaga is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with htmlgaga. If not, see <https://www.gnu.org/licenses/>.
*/
import webpack from 'webpack';
import { HtmlgagaConfig } from '../Builder';
export default class ClientsCompiler {
#private;
constructor(pagesDir: string, outputPath: string, config: HtmlgagaConfig);
createWebpackConfig(entry: string): webpack.Configuration;
run(callback: (err: any, stats: any) => void): Promise<void>;
}