0
0
Fork 0

Resolve custom application stylesheet with Webpack (#3373)

This implementation is a bit smaller and still has the following benefits:

* No need of app/javascript/packs/custom.js
For custom stylesheet, it typically has only
"require('../styles/custom.scss')" and is redundant.

* No need to extract vendor stylesheet to another asset
Extracting vendor stylesheet could be forgotten by developers who do not
use custom stylesheet.
This commit is contained in:
Akihiko Odaki (@fn_aki@pawoo.net) 2017-06-02 03:56:32 +09:00 committed by Eugen Rochko
parent 2212dc4aaa
commit e98559c3ff
4 changed files with 11 additions and 25 deletions

View file

@ -2,7 +2,7 @@ const perf = require('./performance');
// import default stylesheet with variables
require('font-awesome/css/font-awesome.css');
require('../styles/application.scss');
require('mastodon-application-style');
function onDomContentLoaded(callback) {
if (document.readyState !== 'loading') {