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.
Showing
- app/helpers/style_helper.rb 0 additions, 17 deletionsapp/helpers/style_helper.rb
- app/javascript/mastodon/main.js 1 addition, 1 deletionapp/javascript/mastodon/main.js
- app/views/layouts/application.html.haml 1 addition, 2 deletionsapp/views/layouts/application.html.haml
- config/webpack/shared.js 9 additions, 5 deletionsconfig/webpack/shared.js
app/helpers/style_helper.rb
deleted
100644 → 0
Please register or sign in to comment