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

th-downstream
Claire 10 months ago
parent 34c9f77b3e
commit 01df34b9db

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

@ -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

@ -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',

Loading…
Cancel
Save