Prepare to migrate over Rookeries to use web components for main app.

This commit is contained in:
Dorian 2019-07-31 14:24:28 -04:00
parent 05c7bf4a42
commit cab556df7b
5 changed files with 12 additions and 24 deletions

View File

@ -1,5 +0,0 @@
{
"app":"rookeries",
"gitRevision":"RANDOM",
"version":"0.15.0"
}

10
web-app/index.html Normal file
View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Rookeries - Core Web App</title>
</head>
<body>
<h1>Rookeries</h1>
<div id="ui-target"></div>
</body>
</html>

View File

@ -1,17 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Rookeries - Web</title>
</head>
<body class="evening">
<header>
<h1>Sample Header</h1>
</header>
<div id="ui-target"></div>
<footer>
Sample Footer<br />
Powered by <a href='https://rookeries.org/'>Rookeries</a> v{ appStatusStore.version }<br />
Developed by <a href='https://amber-penguin-software.ca/'>Amber Penguin Software</a>
</footer>
</body>
</html>

View File

@ -8,7 +8,7 @@ const ENV = process.env.NODE_ENV || 'development';
export default { export default {
mode: ENV, mode: ENV,
entry: ['babel-polyfill', './src/entry.js'], entry: ['babel-polyfill', './src/index.js'],
output: { output: {
path: path.resolve(__dirname, 'dist'), path: path.resolve(__dirname, 'dist'),
filename: 'rookeries.js', filename: 'rookeries.js',
@ -75,7 +75,7 @@ export default {
: [ : [
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({
title: 'Rookeries - Webpack Dev', title: 'Rookeries - Webpack Dev',
template: './templates/webpack_base.html', template: './index.html',
xhtml: true, xhtml: true,
}), }),
new webpack.HotModuleReplacementPlugin(), new webpack.HotModuleReplacementPlugin(),