From 102e8a46297e1ba5842388372bb9c2377905b5b0 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Sat, 24 Dec 2016 11:32:40 -0700 Subject: [PATCH] Webpack instructions --- .gitignore | 2 ++ _readme_.md | 5 +++++ webpack.config.js | 6 ++++++ 3 files changed, 13 insertions(+) create mode 100644 .gitignore create mode 100644 webpack.config.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..52622bd --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/node_modules/ +bundle.js diff --git a/_readme_.md b/_readme_.md index 2418c0d..9883596 100644 --- a/_readme_.md +++ b/_readme_.md @@ -2,8 +2,13 @@ This example demonstrates how the `ol` package can be used with webpack 2. +Clone the project. + + git clone git@gist.github.com:79025aef325cd2837364400a105405b8.git ol-webpack + Install the project dependencies. + cd ol-webpack npm install Create a bundle for the browser. diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..f3e56f0 --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,6 @@ +module.exports = { + entry: './main.js', + output: { + filename: 'bundle.js' + } +};