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">
|
<div class="row-fluid">
|
||||||
<h5 class="source-heading">main.js</h5>
|
<h5 class="source-heading">main.js</h5>
|
||||||
<pre><code id="example-js-source" class="language-js">import 'ol/ol.css';
|
<pre><code id="example-js-source" class="language-js">{{ js.source }}</code></pre>
|
||||||
{{ js.source }}</code></pre>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row-fluid">
|
<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://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}}
|
<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}}
|
{{ indent extraHead.remote spaces=4 }}{{/if}}
|
||||||
|
<link rel="stylesheet" href="node_modules/ol/ol.css">
|
||||||
<style>
|
<style>
|
||||||
.map {
|
.map {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -206,7 +206,7 @@
|
|||||||
{{#if css.source}}{{ indent css.source spaces=6 }}{{/if}} </style>
|
{{#if css.source}}{{ indent css.source spaces=6 }}{{/if}} </style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{{ indent contents spaces=4 }} <script src="main.js"></script>
|
{{ indent contents spaces=4 }} <script type="module" src="main.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html></code></pre>
|
</html></code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user