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!
Bladeren bron

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

master
Stanislaw Adaszewski 4 jaren geleden
bovenliggende
commit
22972466a5
4 gewijzigde bestanden met toevoegingen van 7 en 13 verwijderingen
  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 Bestand weergeven

@@ -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 Bestand weergeven

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

+ 2
- 1
frontend/package.json Bestand weergeven

@@ -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 Bestand weergeven

@@ -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()
]
}

Laden…
Annuleren
Opslaan