Updated dependencies

master
Tim Schaub 2017-07-24 14:20:40 -06:00
parent ac6d25978d
commit 3e5641a20a
4 changed files with 16 additions and 3 deletions

View File

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

View File

@ -1,3 +1,4 @@
import 'ol/ol.css';
import Map from 'ol/map';
import View from 'ol/view';
import TileLayer from 'ol/layer/tile';

View File

@ -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"
}
}

View File

@ -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()
]