mirror of
https://github.com/discourse/discourse.git
synced 2025-02-09 12:54:56 +00:00
DEV: Correctly strip sourcemap URL from splash-screen js (#22879)
In e1d27400f5d8be345383b52bd118e652724a517e we started running the splash-screen JS through terser, which removed the trailing newline from the `sourceMappingURL` line. Adding a reliable end-to-end test for this isn't possible because our testing environment doesn't use terser.
This commit is contained in:
parent
8a0d00b866
commit
7ecaf6295d
@ -19,7 +19,7 @@ module SplashScreenHelper
|
||||
|
||||
def self.load_js
|
||||
File.read("#{Rails.root}/app/assets/javascripts/discourse/dist/assets/splash-screen.js").sub(
|
||||
"//# sourceMappingURL=splash-screen.map\n",
|
||||
"//# sourceMappingURL=splash-screen.map",
|
||||
"",
|
||||
)
|
||||
rescue Errno::ENOENT
|
||||
|
Loading…
x
Reference in New Issue
Block a user