Updated dependencies

This commit is contained in:
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> <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;

View file

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

View file

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

View file

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