Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const CopyWebpackPlugin = require("copy-webpack-plugin");
const { addHarpWebpackConfig } = require("@here/harp-webpack-utils/scripts/HarpWebpackConfig");
// this webpack config consists of two generated bundles.
// 1. The bundle that is loaded in the web worker to do background tasks
// 2. The main bundle.
module.exports = addHarpWebpackConfig(
{ plugins: [new CopyWebpackPlugin([require.resolve("three/build/three.min.js")])] },
{ mainEntry: "./index.ts", decoderEntry: "./decoder.ts", htmlTemplate: "./index.html" }
);
const CopyWebpackPlugin = require("copy-webpack-plugin");
const { addHarpWebpackConfig } = require("@here/harp-webpack-utils/scripts/HarpWebpackConfig");
// this webpack config consists of two generated bundles.
// 1. The bundle that is loaded in the web worker to do background tasks
// 2. The main bundle.
module.exports = addHarpWebpackConfig(
{ plugins: [new CopyWebpackPlugin([require.resolve("three/build/three.min.js")])] },
{ mainEntry: "./index.js", decoderEntry: "./decoder.js", htmlTemplate: "./index.html" }
);