Skip to content

Commit f57bfb6

Browse files
committed
Separate plain html and aframe demos
1 parent 46459e1 commit f57bfb6

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

demo/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Home-Lit Demo: Light Switch and Light Bulb</title>
77
<link rel="stylesheet" href="styles.css">
8-
<script src="http://localhost:9000/homie-lit.js"></script>
8+
<script src="/homie-lit.js"></script>
99
<script src="./js/main.js" type="module"></script>
1010
</head>
1111
<body>

webpack.demo-aframe.config.js

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
const path = require('path');
2+
const { merge } = require('webpack-merge');
3+
const baseConfig = require('./webpack.config.js');
4+
5+
module.exports = merge(baseConfig, {
6+
mode: 'development',
7+
devServer: {
8+
static: [
9+
{
10+
directory: path.join(__dirname, 'demo-aframe'),
11+
publicPath: '/',
12+
},
13+
{
14+
directory: path.join(__dirname, 'dist'),
15+
publicPath: '/',
16+
},
17+
],
18+
compress: false,
19+
port: 9000,
20+
},
21+
});

webpack.demo.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = merge(baseConfig, {
77
devServer: {
88
static: [
99
{
10-
directory: path.join(__dirname, 'demo-aframe'),
10+
directory: path.join(__dirname, 'demo'),
1111
publicPath: '/',
1212
},
1313
{

0 commit comments

Comments
 (0)