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
Im running into a double sourcemap issue since my gulp-sass has mappings for .scss -> .css and then the bundler has source maps from bundle -> .css. In the browser, you see many mappings for css. I would like to turn off mapping for css when bundling. the current options of 'maps' is a blanket on or off for both css and js.
The text was updated successfully, but these errors were encountered:
kinkay716
changed the title
Add ability to use source maps on css only
Add ability to use source maps on js only
Jun 8, 2015
yes...but hesitant to do so. I'm working on a fairly large app and my bundle.config is already 1400+ lines. If that is the only way, I understand. I'm surprised nobody has brought this up before? This would seem to be a pretty common use case.
Any file that is 1400+ lines long is going to be impossible to manage... my first suggestion would be to refactor your bundle.config so that each bundle is in it's own file and then the main bundle.config can require or loop through and include the separate files. You can also use a default set of options and merge them with custom ones for each bundle using something like _. defaults. Refactoring is your friend.
That problem aside, I'm not opposed to calling out the maps flag for scripts and styles separately. We already do that for many other options. It would look something like this:
Im running into a double sourcemap issue since my gulp-sass has mappings for .scss -> .css and then the bundler has source maps from bundle -> .css. In the browser, you see many mappings for css. I would like to turn off mapping for css when bundling. the current options of 'maps' is a blanket on or off for both css and js.
The text was updated successfully, but these errors were encountered: