Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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")
}
});
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);
}
}
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")
}
});
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")
}
});
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")
}
});