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' + } +};