56 lines
2.9 KiB
JavaScript
56 lines
2.9 KiB
JavaScript
// ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
|
// ┃ ██████ ██████ ██████ █ █ █ █ █ █▄ ▀███ █ ┃
|
|
// ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█ ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄ ▀█ █ ▀▀▀▀▀ ┃
|
|
// ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄ █ ▄▄▄▄▄ ┃
|
|
// ┃ █ ██████ █ ▀█▄ █ ██████ █ ███▌▐███ ███████▄ █ ┃
|
|
// ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
|
|
// ┃ Copyright (c) 2017, the Perspective Authors. ┃
|
|
// ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃
|
|
// ┃ This file is part of the Perspective library, distributed under the terms ┃
|
|
// ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃
|
|
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
|
|
|
|
const HtmlWebPackPlugin = require("html-webpack-plugin");
|
|
|
|
module.exports = {
|
|
mode: process.env.NODE_ENV || "production",
|
|
entry: "./src/index.js",
|
|
output: {
|
|
filename: "index.js",
|
|
},
|
|
plugins: [
|
|
new HtmlWebPackPlugin({
|
|
title: "Perspective Webpack Example",
|
|
}),
|
|
],
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.css$/,
|
|
exclude: /node_modules/,
|
|
use: [{ loader: "style-loader" }, { loader: "css-loader" }],
|
|
},
|
|
{
|
|
test: /(perspective\-server\.wasm|perspective\-viewer\.wasm)$/,
|
|
type: "asset/resource",
|
|
},
|
|
{
|
|
test: /\.arrow$/,
|
|
use: [{ loader: "arraybuffer-loader" }],
|
|
},
|
|
],
|
|
},
|
|
stats: {
|
|
modules: false,
|
|
hash: false,
|
|
version: false,
|
|
builtAt: false,
|
|
entrypoints: false,
|
|
},
|
|
experiments: {
|
|
asyncWebAssembly: false,
|
|
syncWebAssembly: false,
|
|
},
|
|
devtool: "source-map",
|
|
};
|