-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use webpack extract_css: true all of the time (#204)
Webpacker has a nasty habit of not compiling css files for components and then causing an error in production when they are missing. rails/webpacker#2342 rails/webpacker#2059 (comment) Unfortunately using extract_css: true all the time apparently comes with some performance impacts, however the tradeoff is the application actually works correctly in development mode.
- Loading branch information
Robert Clark
authored
Aug 18, 2021
1 parent
3a57b7c
commit 4e2cf40
Showing
3 changed files
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
- content_for :assets do | ||
= javascript_pack_tag 'projects' | ||
= stylesheet_pack_tag 'projects' | ||
|
||
#Projects | ||
%Projects{ | | ||
'v-bind:projects': @projects.to_json, | | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
- content_for :assets do | ||
= javascript_pack_tag 'users' | ||
= stylesheet_pack_tag 'users' | ||
|
||
#users | ||
%Users{ | | ||
'v-bind:users': @users.to_json, | | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters