piral-cli
Version:
The standard CLI for creating and building a Piral instance or a Pilet.
17 lines • 595 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = default_1;
const path_1 = require("path");
/**
* Checks that the app field is valid and points to an existing HTML file.
*/
function default_1(context, options = undefined) {
if (!context.entry.endsWith('.html')) {
context.warning(`
The resolved app should be an HTML file, otherwise it may be an invalid bundler entry point.
Expected: Ends with ".html".
Received: Ends with "${(0, path_1.extname)(context.entry)}".
`);
}
}
//# sourceMappingURL=piral-entry-ends-with-html.js.map