js source code inlined in index.html file

This commit is contained in:
NikolaBorislavovHristov 2019-07-18 13:13:32 +03:00
parent 5c95f98345
commit 92491703cf
2 changed files with 4 additions and 2 deletions

View file

@ -9,7 +9,9 @@
<body> <body>
<div id="app"></div> <div id="app"></div>
<script type="text/javascript" src="/stremio-web.js"></script> <script type="text/javascript">
<%= compilation.assets['bundle.js'].source() %>
</script>
<script type="text/javascript" src="qrc:///qtwebchannel/qwebchannel.js"></script> <script type="text/javascript" src="qrc:///qtwebchannel/qwebchannel.js"></script>
<script type="text/javascript" src="qrc:///stremio-shell.js"></script> <script type="text/javascript" src="qrc:///stremio-shell.js"></script>
</body> </body>

View file

@ -7,7 +7,7 @@ module.exports = {
entry: './src/index.js', entry: './src/index.js',
output: { output: {
path: path.join(__dirname, 'dist'), path: path.join(__dirname, 'dist'),
filename: 'stremio-web.js', filename: 'bundle.js',
publicPath: '/' publicPath: '/'
}, },
module: { module: {