Fix client build

pull/26/head
Starbeamrainbowlabs 4 years ago
parent bb6e1a7c07
commit 0dcdb9261d
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
  1. 2
      .gitignore
  2. 7
      build
  3. 0
      client_src/css/main.css
  4. 14
      client_src/index.html
  5. 2
      rollup.config.js

2
.gitignore vendored

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

@ -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,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>

@ -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'

Loading…
Cancel
Save