How to use @here/harp-webpack-utils - 2 common examples

To help you get started, we’ve selected a few @here/harp-webpack-utils 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 heremaps / harp.gl / @here / generator-harp.gl / generators / app / templates / typescript / webpack.config.js View on Github external
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" }
);
github heremaps / harp.gl / @here / generator-harp.gl / generators / app / templates / javascript / webpack.config.js View on Github external
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" }
);

@here/harp-webpack-utils

harp.gl webpack utilities

Apache-2.0
Latest version published 2 years ago

Package Health Score

45 / 100
Full package analysis