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