Webpack instructions
This commit is contained in:
parent
de42e97f9e
commit
102e8a4629
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
/node_modules/
|
||||
bundle.js
|
|
@ -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
6
webpack.config.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
module.exports = {
|
||||
entry: './main.js',
|
||||
output: {
|
||||
filename: 'bundle.js'
|
||||
}
|
||||
};
|
Loading…
Reference in a new issue