mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-28 14:50:57 -05:00
3b00601872
Previously, the HTML export template `html.hbs` included CDN links for the HTML and CSS resources. This commit enables Webpack to create a new `htmlexport.html` at build-time, which includes all resources inline. That template is then used as before by the frontend to be populated with the rendered note content. The tradeoff is that each exported .html file is about 5.6 MB in size, as we need to inline all fonts (icons & emojis). Signed-off-by: David Mehren <git@herrmehren.de>
25 lines
902 B
JavaScript
25 lines
902 B
JavaScript
require('bootstrap/dist/css/bootstrap.min.css')
|
|
require('fork-awesome/css/fork-awesome.min.css')
|
|
require('ionicons/css/ionicons.min.css')
|
|
require('prismjs/prism')
|
|
require('prismjs/themes/prism.css')
|
|
require('prismjs/components/prism-wiki')
|
|
require('prismjs/components/prism-haskell')
|
|
require('prismjs/components/prism-go')
|
|
require('prismjs/components/prism-typescript')
|
|
require('prismjs/components/prism-jsx')
|
|
require('prismjs/components/prism-makefile')
|
|
require('prismjs/components/prism-gherkin')
|
|
require('highlight.js/styles/github-gist.css')
|
|
require('emojify.js/dist/css/basic/emojify.min.css')
|
|
require('../css/github-extract.css')
|
|
require('../css/markdown.css')
|
|
require('../css/extra.css')
|
|
require('../css/slide-preview.css')
|
|
require('../css/font.css')
|
|
require('../css/site.css')
|
|
const $ = require('jquery')
|
|
window.jQuery = $
|
|
window.$ = $
|
|
require('bootstrap')
|
|
require('gist-embed/gist-embed.min')
|