IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Browse Source

Switched to rollup-plugin-uglify, made a deployment.

pull/1/head
parent
commit
22972466a5
4 changed files with 7 additions and 13 deletions
  1. +1
    -0
      .gitignore
  2. +0
    -6
      dockerfiles/wba/files/wba/dist/index.html
  3. +2
    -1
      frontend/package.json
  4. +4
    -6
      frontend/rollup.config.js

+ 1
- 0
.gitignore View File

@@ -6,3 +6,4 @@ package-lock.json
/backend/server.pem
/testdata/
/backend/supervisord/supervisord.log
/dockerfiles/wba/files/wba/dist

+ 0
- 6
dockerfiles/wba/files/wba/dist/index.html View File

@@ -1,6 +0,0 @@
<!DOCTYPE html>
<html>
<body>
Hello, world!
</body>
</html>

+ 2
- 1
frontend/package.json View File

@@ -12,13 +12,14 @@
"popper.js": "^1.16.1",
"preact": "^8.2.9",
"preact-router": "^2.6.1",
"rollup": "^0.62.0",
"rollup": "^0.66.6",
"rollup-plugin-buble": "^0.19.2",
"rollup-plugin-copy": "^0.2.3",
"rollup-plugin-includepaths": "^0.2.3",
"rollup-plugin-license": "^0.7.0",
"rollup-plugin-minify": "^1.0.3",
"rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-uglify": "^6.0.4",
"streamsaver": "^2.0.3",
"watch": "^1.0.2",
"web-streams-polyfill": "^2.0.6"


+ 4
- 6
frontend/rollup.config.js View File

@@ -1,12 +1,12 @@
import resolve from 'rollup-plugin-node-resolve'
import buble from 'rollup-plugin-buble';
import minify from 'rollup-plugin-minify';
import copy from 'rollup-plugin-copy';
import includePaths from 'rollup-plugin-includepaths';
import license from 'rollup-plugin-license';
import { uglify } from "rollup-plugin-uglify";
export default {
//dest: 'dist/app.min.js',
// dest: 'dist/js/app.js',
input: 'src/js/index.js',
output: {
file: 'dist/js/app.min.js',
@@ -57,9 +57,7 @@ export default {
resolve({}),
license({
banner: 'Copyright (C) F. Hoffmann-La Roche AG, 2020.\nAuthor: stanislaw.adaszewski@roche.com\nAll Rights Reserved.',
}) /* ,
minify({
iife: 'dist/app.min.js'
}) */
}),
// uglify()
]
}

Loading…
Cancel
Save