]> cat aescling's git repositories - mastodon.git/commit
Resolve custom application stylesheet with Webpack (#3373)
authorAkihiko Odaki (@fn_aki@pawoo.net) <akihiko.odaki.4i@stu.hosei.ac.jp>
Thu, 1 Jun 2017 18:56:32 +0000 (03:56 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 1 Jun 2017 18:56:32 +0000 (20:56 +0200)
commite98559c3ff79ccc9b5b866c5351416dd58f2ebee
tree3f755ee308b0b51ac3e492bc58b37c5a86804a40
parent2212dc4aaa6de729d2fe3e39b134b566935b11b7
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.
app/helpers/style_helper.rb [deleted file]
app/javascript/mastodon/main.js
app/views/layouts/application.html.haml
config/webpack/shared.js