Webpack instructions

This commit is contained in:
Tim Schaub 2016-12-24 11:32:40 -07:00
parent de42e97f9e
commit 102e8a4629
3 changed files with 13 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/node_modules/
bundle.js

View file

@ -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.

6
webpack.config.js Normal file
View file

@ -0,0 +1,6 @@
module.exports = {
entry: './main.js',
output: {
filename: 'bundle.js'
}
};