I'm using Libsass (by means of libsass-maven-plugin) for compiling SASS files into CSS files in a JSF project. The outputStyle is "compressed". The resultant source maps are apparently wrong - when inspecting something in a browser, it often points to a wrong source file. Why is this happening?
Wrong source maps created by Libsass for CSS files in a JSF project
219 Views Asked by Vsevolod Golovanov At
1
There are 1 best solutions below
Related Questions in JSF
- Calling custom AuthenticationHandler from Faces bean throws IllegalStateException: Cannot change buffer size after data has been written
- Force security constraint managed 403 error when hitting restricted page with h:commandLink
- primefaces component id not found in update
- LazyDataModel, custom filter with search button
- How to use SelectManyCheckbox with ArrayList as HashMap value
- how to surpress logging of jsf "There are some unhandled FacesMessages"
- SelectManyCheckbox returns array of Object[] instead of ArrayList
- My dialog component on PrimeFaces can't render a list on first click
- How to retrieve posted data via FacesContext
- I'm using JSF and after a timer expires, I want to display a warning
- Why print result is blank?
- PrimeFaces centering searchbar on menubar
- JSF: p:fileUpload requiredmessage is apearing on click of another button
- How can I make sure that JSF works?
- Is there an already-made template project using Spring, JSF, PrimeFaces, SOAP and MySQL?
Related Questions in JSF-2
- JSF 2 Primefaces : On Ajax reponse I can see extra updates sent by server <update id="javax.faces.Resource"> and which cause my action skipped
- Understanding HTTP sessions in JSF as session attributres are going null unexpectedly while working actively on the application
- How to clear data from datatable using primefaces and java
- CDI Interceptor fires BEFORE HttpAuthenticationMechanism validates request
- JSF user lockout after X failed login attempts
- JSF ExceptionHandler - Response already committed in some cases
- Why am I getting Class NotFound Exception using data table with jsf
- Java Beans - how to ignore boolean isXXXXMethod in favor of BOOLEAN getXXXXMethod in JSF page?
- Input element created with h:inputText is not editable
- NullPointerException during initFaces of a MyFaces 2.0 application while migrating from WLS to Tomcat
- Primefaces 10 HTML styling in DataTable emptyMessage
- jsf2, primefaces 11, Component ID j_idt20 has already been found in the view
- Hide rows of datatable based on condition in JSF2
- How to generate and preview a presigned url of a file in jsf?
- commandLink action parameter not displayed in JSF2
Related Questions in SASS
- Swiper pagination bullet: styling for visited slides' pagination bullet as well
- Vue TransitionGroup not working properly because of css transition
- Angular version 17, is it possible and how to connect several preprocessors (LESS, SASS, SCSS, etc.)
- Angular 17 | Angular Material 17.3.1 Issue with styling Angular Material Menu component
- How does CSS properties from figma files in 1920X1080 screen resolution work on different laptop screen resolution?
- Not able to set font-size: 12px in ant-design components & also not able to apply a custom google fonts to ant-design components
- How Can i rid of the red lines while declaring variables in .scss file in VS code
- How to add wallpaper with CSS on a Hugo theme?
- not able to target element
- How to Fill Empty Space in CSS Grid?
- Is there a way to fix the list to become horizontal and teh banner to become orange
- Mask a sticker image so that it fits onto a main image without parts of the sticker that are outside the image being visible - How?
- problem with @use in scss file Yii2 advanced
- How to create a button with a svg inside correctly?
- Angular Material variables in scss
Related Questions in SOURCE-MAPS
- How to configure Sentry Webpack sourcemap uploading in Quasar?
- Next.js 13.4.1 & Webpack 5.89.0: Not Generating Source Maps for Chunks in Production
- Why are two of our Angular component templates taking up so much space of our bundle?
- Accessing File Name and Line Number in Production Errors with React Error Boundary
- Vite sourcemaps show in inspector, but loads different sourcemap in browser
- How to have conditional source-maps in next.js
- How to get source-mapped path to code in Browser in JavaScript?
- Sourcemap granularity
- Vite JS merge output sourcemaps
- How can error stack traces be logged in Azure Durable Functions for Typescript?
- How to enable SCSS sourcemap not css with parcel
- Understanding Source Map Generation Through Multiple Code Transformations (TypeScript, Hermes, Obfuscator, etc.)
- Backtrace the source map file where a minificated error happened
- debug in chrome and step into original code and not compiled one
- Cannot set breakpoint in chrome dev tools on executable lines
Related Questions in LIBSASS
- Change LibSassBuilder output directory
- Operation not permitted with node-sass install
- Compressed CSS files generated by django-compressor/libsass are not served on the first launch of the server, but are served on subsequent launches
- Convert a Hex-String to a Hex-Color value in SCSS
- Error while Extending classic Theme Liferay 7.3
- Cannot set output_style for libsass using python to compile SASS on each deploy
- How to propagate configuration everywhere with dart sass modules (@use, @forward, etc..)?
- react app needs to upgrade version of libsass used by node-sass
- force node-sass to use lib-sass 3.6.0
- "Compound selectors may no longer be extended" error being thrown when running "ng serve."
- Ignore style declaration without value is SCSS
- SASS mapped property doesn't enter in IF else statement
- How to debug libsass library?
- How to compile SASS files using dart sass in C/C++ language?
- How properly setup Flask + pypugjs + sass?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
During the build Libsass evaluates the provided CSS files, and references their code in the created source maps in the form of encoded line and column numbers. The "compressed" outputStyle means that all code is in a single line, so the source maps are forced to rely on column numbers only.
Now, JSF CSS files often contain EL resource expressions like this:
These expressions are evaluated in runtime and replaced with URLs. This means that served CSS is different from the one that Libsass based its source maps on. That's why the maps are wrong - their column number references no longer match.
A possible workaround could be to use an outputStyle other than "compressed", e.g. "expanded". Then at least the line numbers are correct, that should be good enough. Just don't break those EL expressions into multiple lines.