Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions fief/templates/admin/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="{{ url_for('dashboard:static', path='/favicon.svg') }}" />
<link href="{{ url_for('dashboard:static', path='/admin.css') }}" rel="stylesheet">
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://unpkg.com/[email protected]"></script>
<script src="{{ url_for('dashboard:static', path='/dependencies.bundle.js') }}"></script>
{% block javascripts_modules %}{% endblock %}
{% if posthog_api_key %}
<script>
Expand Down
3 changes: 1 addition & 2 deletions fief/templates/auth/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
}
</style>
{% endif %}
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://unpkg.com/[email protected]"></script>
<script src="{{ url_for('auth:static', path='/dependencies.bundle.js') }}"></script>
{% block javascripts_modules %}{% endblock %}
{% endblock %}
</head>
Expand Down
2 changes: 2 additions & 0 deletions js/dependencies.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import * as htmx from 'htmx.org'
import * as hyperscript from 'hyperscript.org'
27 changes: 27 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
"@uiw/codemirror-theme-github": "^4.21.21",
"autoprefixer": "^10.4.17",
"codemirror": "^6.0.1",
"htmx.org": "^1.9.12",
"hyperscript.org": "^0.9.12",
"postcss": "^8.4.33",
"rollup": "^3.29.4",
"rollup-plugin-postcss": "^4.0.2",
Expand Down
11 changes: 11 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,15 @@ module.exports = [
terser(),
],
},
{
input: './js/dependencies.mjs',
output: {
file: './fief/static/dependencies.bundle.js',
format: 'iife',
},
plugins: [
nodeResolve(),
terser(),
],
},
];