Skip to content
Snippets Groups Projects
Verified Commit 4cab8346 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Generate widget html

parent 6ffbe48c
No related branches found
No related tags found
No related merge requests found
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
</head>
<body>
<script src="augmentile-widget.bundle.js"></script>
</body>
</html>
......@@ -2,11 +2,10 @@
"name": "augmentile",
"version": "0.1.0-alpha",
"description": "Augment matrix rooms with a tile map game",
"private": true,
"private": false,
"repository": "https://edugit.org/auglement/augmentile",
"author": "Dominik George <nik@naturalnet.de>",
"license": "Apache-2.0",
"private": false,
"dependencies": {
"matrix-widget-api": "^0.1.0-beta.13",
"phaser": "^3.54.0"
......@@ -15,6 +14,7 @@
"build": "webpack"
},
"devDependencies": {
"html-webpack-plugin": "^5.3.1",
"webpack": "^5.35.0",
"webpack-cli": "^4.6.0"
}
......
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: {
widget: "./src/widget.js"
widget: './src/widget.js'
},
plugins: [
new HtmlWebpackPlugin({
title: 'Aug[m]entile',
filename: 'augmentile-[name].html',
hash: true
}),
],
output: {
filename: "augmentile-[name].bundle.js",
path: path.resolve(__dirname, 'dist')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment