Blame lang/js/webpack.conf.js

Packit Service 30b792
/* gpgme.js - Javascript integration for gpgme
Packit Service 30b792
 * Copyright (C) 2018 Bundesamt für Sicherheit in der Informationstechnik
Packit Service 30b792
 *
Packit Service 30b792
 * This file is part of GPGME.
Packit Service 30b792
 *
Packit Service 30b792
 * GPGME is free software; you can redistribute it and/or modify it
Packit Service 30b792
 * under the terms of the GNU Lesser General Public License as
Packit Service 30b792
 * published by the Free Software Foundation; either version 2.1 of
Packit Service 30b792
 * the License, or (at your option) any later version.
Packit Service 30b792
 *
Packit Service 30b792
 * GPGME is distributed in the hope that it will be useful, but
Packit Service 30b792
 * WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 30b792
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 30b792
 * Lesser General Public License for more details.
Packit Service 30b792
 *
Packit Service 30b792
 * You should have received a copy of the GNU Lesser General Public
Packit Service 30b792
 * License along with this program; if not, see <https://www.gnu.org/licenses/>.
Packit Service 30b792
 * SPDX-License-Identifier: LGPL-2.1+
Packit Service 30b792
 *
Packit Service 30b792
 * This is the configuration file for building the gpgmejs-Library with webpack
Packit Service 30b792
 */
Packit Service 30b792
/* global require, module, __dirname */
Packit Service 30b792
const path = require('path');
Packit Service 30b792
Packit Service 30b792
module.exports = {
Packit Service 30b792
    entry: './src/index.js',
Packit Service 30b792
    // mode: 'development',
Packit Service 30b792
    mode: 'production',
Packit Service 30b792
    output: {
Packit Service 30b792
        path: path.resolve(__dirname, 'build'),
Packit Service 30b792
        filename: 'gpgmejs.bundle.js',
Packit Service 30b792
        libraryTarget: 'var',
Packit Service 30b792
        libraryExport: 'default',
Packit Service 30b792
        library: 'Gpgmejs'
Packit Service 30b792
    }
Packit Service 30b792
};