Skip to content

Commit 1936cac

Browse files
committed
enable lazy-loading of gitgraph.js
- moved gitgraph.js to web_src and made it importable and es6-compatible - created new webpack chunk for gitgraph - enabled CSS loader in webpack - enabled async/await syntax via regenerator-runtime - added script to ensure webpack chunks are loaded correctly - disable terser's comment extraction to prevent .LICENCE files gitgraph.js has many issues: 1. it is incompatible with ES6 because of strict-mode violations 1. it does not export anything 1. it's css has weird styles like for `body` 1. it is not available on npm I fixed points 1-3 in our version so it's now loadable in webpack. We should eventually consider alternatives.
1 parent 06984bb commit 1936cac

23 files changed

+1334
-676
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/public/js/semantic.dropdown.custom.js
2+
/web_src/js/vendor/**

.eslintrc

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ env:
1414
node: true
1515

1616
globals:
17+
__webpack_public_path__: true
1718
Clipboard: false
1819
CodeMirror: false
1920
Dropzone: false

0 commit comments

Comments
 (0)