UNPKG

v3d-web-realbits

Version:

Single camera motion-tracking in browser

56 lines 1.39 kB
"use strict"; const path = require("path"); const CopyPlugin = require("copy-webpack-plugin"); const test_folder = "test"; const config = { mode: "development", devtool: "inline-source-map", entry: path.resolve(__dirname, "src", "index"), module: { rules: [ { test: /\.ts$/, use: "ts-loader", }, { test: /\.m?js$/, resolve: { fullySpecified: false, }, }, ], }, resolve: { modules: [path.resolve(__dirname, "node_modules")], extensions: [".js", ".ts"], symlinks: false, }, experiments: { futureDefaults: true, topLevelAwait: true, }, target: ["web"], devServer: { allowedHosts: "localhost", static: { directory: path.resolve(__dirname, test_folder), }, compress: true, port: 8080, }, plugins: [ new CopyPlugin({ patterns: [{ from: "node_modules/@mediapipe/holistic", to: "." }], }), ], output: { library: { name: "v3d-web", type: "umd", }, filename: "[name].test.js", path: path.resolve(__dirname, test_folder), }, }; module.exports = config; //# sourceMappingURL=webpack.test.config.js.map