Merge pull request #13656 from arekgotfryd/draw-shapes-example-fix
Fix for parcel error while building examples
This commit is contained in:
@@ -181,8 +181,7 @@
|
||||
|
||||
<div class="row-fluid">
|
||||
<h5 class="source-heading">main.js</h5>
|
||||
<pre><code id="example-js-source" class="language-js">import 'ol/ol.css';
|
||||
{{ js.source }}</code></pre>
|
||||
<pre><code id="example-js-source" class="language-js">{{ js.source }}</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid">
|
||||
@@ -198,6 +197,7 @@
|
||||
<script src="https://cdn.polyfill.io/v3/polyfill.min.js?features=fetch,requestAnimationFrame,Element.prototype.classList,TextDecoder"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/core-js/3.18.3/minified.js"></script>{{#if extraHead.remote}}
|
||||
{{ indent extraHead.remote spaces=4 }}{{/if}}
|
||||
<link rel="stylesheet" href="node_modules/ol/ol.css">
|
||||
<style>
|
||||
.map {
|
||||
width: 100%;
|
||||
@@ -206,7 +206,7 @@
|
||||
{{#if css.source}}{{ indent css.source spaces=6 }}{{/if}} </style>
|
||||
</head>
|
||||
<body>
|
||||
{{ indent contents spaces=4 }} <script src="main.js"></script>
|
||||
{{ indent contents spaces=4 }} <script type="module" src="main.js"></script>
|
||||
</body>
|
||||
</html></code></pre>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user