@here/harp-webpack-utils
harp.gl webpack utilities
Last updated 2 months ago by here-maps .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @here/harp-webpack-utils 
SYNC missed versions from official npm registry.

Harp.gl Webpack Utilities

Usage

Install the webpack utilities into your project:

npm install --save-dev @here/harp-webpack-utils

Add the following lines to your webpack.config.js:

const { addHarpWebpackConfig } = require("@here/harp-webpack-utils/scripts/HarpWebpackConfig");
const myConfig = {};
module.exports = addHarpWebpackConfig(
    myConfig,
    { mainEntry: "./index.js", decoderEntry: "./harp-gl-decoders.js", htmlTemplate: "./index.html" }
);

myConfig is your existing Webpack configuration. Configuration values in myConfig will override any values generated by addHarpWebpackConfig. ./index.js is the path to your main application code. Will be used as the entry point for the main application bundle. May be omitted if Webpack entry configuration is included in myConfig. ./harp-gl-decoders.js is the path to your decoder service. Will be used as the entry point for the web worker decoder bundle. If omitted no decoder bundle will be created. ./index.html is the path to your HTML template index page. May be omitted if HTML configuration is included in myConfig.

Current Tags

  • 0.17.0                                ...           latest (2 months ago)

6 Versions

  • 0.17.0                                ...           2 months ago
  • 0.16.0                                ...           2 months ago
  • 0.15.0                                ...           3 months ago
  • 0.14.0                                ...           4 months ago
  • 0.13.0                                ...           6 months ago
  • 0.12.0                                ...           6 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |