Updated dependencies
This commit is contained in:
parent
ac6d25978d
commit
3e5641a20a
|
@ -3,7 +3,6 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Using OpenLayers with Webpack</title>
|
<title>Using OpenLayers with Webpack</title>
|
||||||
<link rel="stylesheet" href="https://openlayers.org/en/latest/css/ol.css" type="text/css">
|
|
||||||
<style>
|
<style>
|
||||||
html, body {
|
html, body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
1
main.js
1
main.js
|
@ -1,3 +1,4 @@
|
||||||
|
import 'ol/ol.css';
|
||||||
import Map from 'ol/map';
|
import Map from 'ol/map';
|
||||||
import View from 'ol/view';
|
import View from 'ol/view';
|
||||||
import TileLayer from 'ol/layer/tile';
|
import TileLayer from 'ol/layer/tile';
|
||||||
|
|
|
@ -6,9 +6,11 @@
|
||||||
"build": "webpack --config webpack.config.js"
|
"build": "webpack --config webpack.config.js"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"webpack": "^2.2.1"
|
"css-loader": "^0.28.4",
|
||||||
|
"style-loader": "^0.18.2",
|
||||||
|
"webpack": "^3.3.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ol": "^4.0.1-beta.2"
|
"ol": "^4.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,17 @@ module.exports = {
|
||||||
output: {
|
output: {
|
||||||
filename: 'bundle.js'
|
filename: 'bundle.js'
|
||||||
},
|
},
|
||||||
|
module: {
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
test: /\.css$/,
|
||||||
|
use: [
|
||||||
|
{loader: 'style-loader'},
|
||||||
|
{loader: 'css-loader'}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.optimize.UglifyJsPlugin()
|
new webpack.optimize.UglifyJsPlugin()
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue