"use strict" /* Lesli Copyright (c) 2023, Lesli Technologies, S. A. This program 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. This program 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 this program. If not, see http://www.gnu.org/licenses/. Lesli · Ruby on Rails SaaS Development Framework. Made with ♥ by LesliTech Building a better future, one line of code at a time. @contact hello@lesli.tech @website https://www.lesli.tech @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ // · */ // · var path = require("path") // · module.exports = (env, requestedEngines) => { var config = { entry: { // devise apps "users/sessions": "LesliApp/users/sessions.js", "users/passwords": "LesliApp/users/passwords.js", "users/registrations": "LesliApp/users/registrations.js", // alternative logins "mfas/application": "LesliApp/mfas/application.js", "otps/application": "LesliApp/otps/application.js", "passes/application": "LesliApp/passes/application.js", //"feedback/application": "LesliApp/invites/app.js", // core apps "administration/application": "LesliApp/administration/application.js", "onboardings/application": "LesliApp/onboarding/application.js", "websites/application": "LesliApp/websites/application.js", //"errors/application": "LesliApp/errors/app.js" }, entry: { "lesli/users/passwords": "Lesli/devise/passwords.js", "lesli/users/registrations": ["Lesli/vue/devise/registrations.js", "Lesli/scss/devise/registrations.scss"], "lesli/users/confirmations": ["Lesli/vue/devise/confirmations.js", "Lesli/scss/devise/confirmations.scss"], "lesli/users/passwords": ["Lesli/vue/devise/passwords.js", "Lesli/scss/devise/passwords.scss"], "lesli/users/sessions": ["Lesli/vue/devise/sessions.js", "Lesli/scss/devise/sessions.scss"] }, entry: { "lesli/templates/public": "Lesli/scss/templates/public.scss", "lesli/templates/application": "Lesli/scss/templates/application.scss" }, // javascript output only, // the output for stylesheets is defined in the webpack file itself output: { path: path.resolve("app", "assets"), filename: "javascripts/[name].js" } } // do not include the core apps if specific engines were requested if (requestedEngines.length > 0) { if (!requestedEngines.includes("lesli")) { config.entry = {} } } return config }