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

This commit is contained in:
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 embed: embed.js
error: error:
home: home:
inert:
filename: inert.js
stylesheet: true
mailer: mailer:
filename: mailer.js filename: mailer.js
stylesheet: true stylesheet: true

View File

@ -29,7 +29,7 @@
= javascript_pack_tag 'common', crossorigin: 'anonymous' = 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` -# 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
- if @theme[:supported_locales].include? I18n.locale.to_s - if @theme[:supported_locales].include? I18n.locale.to_s

View File

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