diff --git a/app/javascript/packs/application.js b/app/javascript/packs/application.js index 247ac3922f..367b7e76a9 100644 --- a/app/javascript/packs/application.js +++ b/app/javascript/packs/application.js @@ -15,12 +15,7 @@ window.Perf = require('react-addons-perf'); Rails.start(); require.context('../images/', true); - -const customContext = require.context('../../assets/stylesheets/', false); - -if (customContext.keys().indexOf('./custom.scss') !== -1) { - customContext('./custom.scss'); -} +require.context('../../assets/stylesheets/', false, /custom.*\.scss$/); document.addEventListener('DOMContentLoaded', () => { const mountNode = document.getElementById('mastodon');