Remove bypass and use use glitch-soc's theming system for inert.css

main
Claire 2024-01-15 22:16:26 +01:00
parent 34c9f77b3e
commit 01df34b9db
4 changed files with 5 additions and 6 deletions

View File

@ -10,6 +10,9 @@ pack:
embed: embed.js
error:
home:
inert:
filename: inert.js
stylesheet: true
mailer:
filename: mailer.js
stylesheet: true

View File

@ -29,7 +29,7 @@
= javascript_pack_tag 'common', crossorigin: 'anonymous'
-# Needed for the wicg-inert polyfill. It needs to be on it's own <style> tag, with this `id`
= stylesheet_pack_tag 'inert', media: 'all', id: 'inert-style'
= stylesheet_pack_tag 'core/inert', media: 'all', id: 'inert-style'
- if @theme
- if @theme[:supported_locales].include? I18n.locale.to_s

View File

@ -54,11 +54,7 @@ const entries = Object.assign(
module.exports = {
entry: {
...entries,
// this is cursed, but bypass glitch-soc's theming system for this one
inert: './app/javascript/packs/inert.js',
},
entry: entries,
output: {
filename: 'js/[name]-[chunkhash].js',