Fix client build

This commit is contained in:
Starbeamrainbowlabs 2019-01-13 13:22:13 +00:00
parent bb6e1a7c07
commit 0dcdb9261d
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
5 changed files with 20 additions and 5 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
app/
# Created by https://www.gitignore.io/api/git
# Edit at https://www.gitignore.io/?templates=git

7
build
View File

@ -16,7 +16,7 @@ lantern_path="./lantern-build-engine";
###
# Put any custom settings here.
build_output_folder="./dist";
build_output_folder="./app";
###############################################################################
@ -129,11 +129,12 @@ function task_client {
fi
task_begin "Copying html";
cp index.html "${build_output_folder}";
cp client_src/index.html "${build_output_folder}";
task_end $?;
task_begin "Copying css";
cp theme.css "${build_output_folder}";
# FUTURE: Package this up too?
cp -r client_src/css/ "${build_output_folder}";
task_end $?;
}

0
client_src/css/main.css Normal file
View File

14
client_src/index.html Normal file
View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Air Quality Map | ConnectedHumber</title>
</head>
<body>
content here
<!---------------->
<link rel="stylesheet" href="/css/main.css" />
<script src="app.js" charset="utf-8"></script>
</body>
</html>

View File

@ -2,7 +2,7 @@ import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
export default {
input: 'client_src/index.mjs',
input: 'client_src/js/index.mjs',
output: {
file: 'app/client.js',
format: 'es'