diff options
-rw-r--r-- | app/javascript/packs/application.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/javascript/packs/application.js b/app/javascript/packs/application.js index 247ac3922..367b7e76a 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'); |