Commit Graph

19 Commits

Author SHA1 Message Date
Tim Schaub
54e981f59a Update webpack 2021-03-22 13:42:05 -06:00
Maximilian Krög
358d6736d1 Make examples work with ie11 2020-12-29 23:04:15 +01:00
Andreas Hocevar
3a269045f2 Do not extract comments to avoid asset name conflicts 2020-07-22 21:53:38 +02:00
Maximilian Krög
681fc155a7 Move js code into separate file to benefit from code analysis 2020-07-17 21:18:47 +02:00
Tim Schaub
7f8a1b64bd Update usage of copy-webpack-plugin 2020-05-18 10:16:15 -06:00
Tim Schaub
054af09032 Make code prettier
This updates ESLint and our shared eslint-config-openlayers to use Prettier.  Most formatting changes were automatically applied with this:

    npm run lint -- --fix

A few manual changes were required:

 * In `examples/offscreen-canvas.js`, the `//eslint-disable-line` comment needed to be moved to the appropriate line to disable the error about the `'worker-loader!./offscreen-canvas.worker.js'` import.
 * In `examples/webpack/exapmle-builder.js`, spaces could not be added after a couple `function`s for some reason.  While editing this, I reworked `ExampleBuilder` to be a class.
 * In `src/ol/format/WMSGetFeatureInfo.js`, the `// @ts-ignore` comment needed to be moved down one line so it applied to the `parsersNS` argument.
2020-04-06 12:54:09 -06:00
Andreas Hocevar
7fee85734a Add custom element example 2020-02-18 21:32:31 +01:00
Tim Schaub
05f13bb363 Add worker loader to the examples 2019-05-15 16:49:38 -06:00
ahocevar
391fff38aa Add vector tile example using ol-mapbox-style 2018-11-13 15:47:11 +01:00
ahocevar
8e9e0ae848 Do not minify examples that inject code into workers 2018-08-29 08:56:24 +02:00
ahocevar
39261af940 Keep function names when building examples 2018-07-22 17:39:20 +02:00
ahocevar
f3f0403cec Transpile examples for use with IE 11 2018-07-08 23:31:04 +02:00
ahocevar
57110058fd Move css to src/ol 2018-06-21 11:16:57 +02:00
ahocevar
649b7be4c2 Make common chunk (and sourcemap) work 2018-06-08 12:57:38 +02:00
Tim Schaub
48cbca1f6e Upgrade to Webpack 4 2018-06-07 11:24:39 +02:00
Tim Schaub
1991150079 Updates to get the examples building 2018-05-11 14:02:55 -06:00
Tim Schaub
ad62739a6e Use blocked scoped variables
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00
Tim Schaub
8a9bbd6264 Separate example scripts for dev and prod 2017-12-12 06:56:19 -07:00
Tim Schaub
93411a2b91 Script to build examples 2017-12-12 06:55:17 -07:00