How to use the @finos/perspective/src/config/common.config.js function in @finos/perspective

To help you get started, we’ve selected a few @finos/perspective examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github finos / perspective / packages / perspective-viewer-d3fc / src / config / umd.config.js View on Github external
const path = require("path");
const common = require("@finos/perspective/src/config/common.config.js");

module.exports = Object.assign({}, common(), {
    entry: "./dist/cjs/perspective-viewer-d3fc.js",
    output: {
        filename: "perspective-viewer-d3fc.js",
        library: "perspective-view-d3fc",
        libraryTarget: "umd",
        path: path.resolve(__dirname, "../../dist/umd")
    }
});
github finos / perspective / packages / perspective-viewer / src / config / umd.config.js View on Github external
const path = require("path");
const fs = require("fs");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const common = require("@finos/perspective/src/config/common.config.js");

const THEMES = fs.readdirSync(path.resolve(__dirname, "..", "themes"));
const CONFIG = common();

CONFIG.plugins.push(
    new MiniCssExtractPlugin({
        splitChunks: {
            chunks: "all"
        },
        filename: "[name].css"
    })
);

function try_delete(name) {
    const filePath = path.resolve(__dirname, "..", "..", "dist", "umd", name);
    if (fs.existsSync(filePath)) {
        fs.unlinkSync(filePath);
    }
}
github finos / perspective / packages / perspective-viewer / src / config / cjs.config.js View on Github external
const path = require("path");
const common = require("@finos/perspective/src/config/common.config.js");

module.exports = Object.assign({}, common(), {
    entry: "./dist/esm/viewer.js",
    externals: [/^[a-z0-9@]/],
    output: {
        filename: "perspective-viewer.js",
        libraryTarget: "umd",
        path: path.resolve(__dirname, "../../dist/cjs")
    }
});
github finos / perspective / packages / perspective-viewer-hypergrid / src / config / umd.config.js View on Github external
const path = require("path");
const common = require("@finos/perspective/src/config/common.config.js");

module.exports = Object.assign({}, common(), {
    entry: "./dist/cjs/perspective-viewer-hypergrid.js",
    output: {
        filename: "perspective-viewer-hypergrid.js",
        library: "perspective-viewer-hypergrid",
        libraryTarget: "umd",
        path: path.resolve(__dirname, "../../dist/umd")
    }
});
github finos / perspective / packages / perspective-viewer-highcharts / src / config / umd.config.js View on Github external
const path = require("path");
const common = require("@finos/perspective/src/config/common.config.js");

module.exports = Object.assign({}, common(), {
    entry: "./dist/cjs/perspective-viewer-highcharts.js",
    output: {
        filename: "perspective-viewer-highcharts.js",
        library: "perspective-view-highcharts",
        libraryTarget: "umd",
        path: path.resolve(__dirname, "../../dist/umd")
    }
});