Logo
Explore Help
Sign In
IntenseWebs/discourse
3
0
Fork 0
You've already forked discourse
mirror of https://github.com/discourse/discourse.git synced 2025-02-25 18:55:32 -06:00
Code Issues Packages Projects Releases Wiki Activity
Files
74db5b3232e3f463a57eb295eaac29c86ebb1d2e
discourse/db/migrate/20221018100550_add_source_map_to_javascript_cache.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
175 B
Ruby
Raw Normal View History

DEV: Introduce minification and source maps for Theme JS (#18646) Theme javascript is now minified using Terser, just like our core/plugin JS bundles. This reduces the amount of data sent over the network. This commit also introduces sourcemaps for theme JS. Browser developer tools will now be able show each source file separately when browsing, and also in backtraces. For theme test JS, the sourcemap is inlined for simplicity. Network load is not a concern for tests.
2022-10-18 18:20:10 +01:00
# frozen_string_literal: true
class AddSourceMapToJavascriptCache < ActiveRecord::Migration[7.0]
def change
add_column :javascript_caches, :source_map, :text
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 138ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API