Transpile infodisplay to support older browsers

This commit is contained in:
Henri Bergius 2017-11-29 15:02:35 +01:00
parent 731d6ce04c
commit 09e5147859
4 changed files with 3 additions and 8 deletions

View file

@ -4,7 +4,6 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title>c-flo info display</title> <title>c-flo info display</title>
<script src="/dist/infodisplay.js" type="text/javascript"></script> <script src="/dist/infodisplay.js" type="text/javascript"></script>
<script src="infodisplay.js" type="text/javascript"></script>
<style> <style>
body { body {
margin: 0px; margin: 0px;

View file

@ -1,4 +1,5 @@
const { msgflo } = window.infodisplay; import msgflo from 'msgflo-browser';
let timeout = null; let timeout = null;
function getRotationUrl(urls, current) { function getRotationUrl(urls, current) {

View file

@ -1,5 +0,0 @@
import msgflo from 'msgflo-browser';
export {
msgflo,
};

View file

@ -1,7 +1,7 @@
module.exports = { module.exports = {
entry: { entry: {
infoscreens: './index.js', infoscreens: './index.js',
infodisplay: './msgflo.js', infodisplay: './infodisplay/infodisplay.js',
}, },
output: { output: {
path: __dirname, path: __dirname,