pubnub / eon-map

Realtime maps with PubNub and MapBox.
https://www.pubnub.com/developers/eon/
MIT License
135 stars 51 forks source link

publish package on npm #9

Closed ianjennings closed 7 years ago

ianjennings commented 7 years ago

You can now npm install eon-map! Webpack example:

entry.js

window.PubNub = require('pubnub');
require('eon-map');
require('mapbox.js');
require("mapbox.js/theme/style.css");

webpack.config.js

module.exports = {
  entry: {
    javascript: "./entry.js"
  },
  output: {
    filename: './bundle.js'
  },
  module: {
    loaders: [
      { test: /\.json$/, loader: "json" },
      { test: /\.css$/, loader: "style-loader!css-loader" },
      { test: /\.png$/, loader: "url-loader?limit=100000" },
    ]
  }
};