You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have part of javascript within sprockets and part within webpack (for historical reasons difficult to revert entirely when rails promoted webpacker). The javascript generated by webpack also generates a sourcemap.
I need sprockets to serve the webpack generated js file unmodified, else the original sourcemap generated by webpack will not work.
Unless I find a way to serve the webpack generated file unmodified, I want to disable minification on all generated javascript, but I cannot either
Here is the config/initializers/assets.rb
# do not generate sourcemap because we do not modify js filesRails.application.config.assets.debug=falseclassNullTransformerdefcompress(string)stringendendRails.application.config.assets.compress=trueRails.application.config.assets.js_compressor=NullTransformer.new
Actual behavior
webpack javascript file is served modified. I told webpack to not minify the generated file, but sproskets will insist of minifying it. No way to disable
System configuration
Sprockets version
sprockets (4.2.0)
sprockets-rails (3.4.2)
Ruby version: 3.1.2
The text was updated successfully, but these errors were encountered:
Expected behavior
I have part of javascript within sprockets and part within webpack (for historical reasons difficult to revert entirely when rails promoted webpacker). The javascript generated by webpack also generates a sourcemap.
I need sprockets to serve the webpack generated js file unmodified, else the original sourcemap generated by webpack will not work.
Unless I find a way to serve the webpack generated file unmodified, I want to disable minification on all generated javascript, but I cannot either
Here is the
config/initializers/assets.rb
Actual behavior
webpack javascript file is served modified. I told webpack to not minify the generated file, but sproskets will insist of minifying it. No way to disable
System configuration
sprockets (4.2.0)
sprockets-rails (3.4.2)
The text was updated successfully, but these errors were encountered: