Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COMPILED/COMPILED #95

Closed
kakulukia opened this issue Oct 10, 2016 · 7 comments · May be fixed by #137
Closed

COMPILED/COMPILED #95

kakulukia opened this issue Oct 10, 2016 · 7 comments · May be fixed by #137
Labels

Comments

@kakulukia
Copy link

with kinda the default configuration i get a wrong paths in the generated css file

/*# sourceMappingURL=../COMPILED/sass/styles.css.map */

being in the sass folder this results in the following URL:
/static/COMPILED/COMPILED/sass/styles.css.map HTTP/1.1" 404 1825 which obviously aint there

My settings are:

STATICFILES_FINDERS = [
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'static_precompiler.finders.StaticPrecompilerFinder',
]

STATIC_PRECOMPILER_COMPILERS = (
('static_precompiler.compilers.libsass.SCSS', {
"sourcemap_enabled": True,
}),
('static_precompiler.compilers.libsass.SASS', {
"sourcemap_enabled": True,
}),
)

Whats wrong here?

@kakulukia
Copy link
Author

i also noticed that with a collected static file in place and debug set to True, recent changes to the source file will be ignored and not compiled on the fly. Removing the collected, old version of the sass file reactivated the live compiling :/

@kavdev
Copy link

kavdev commented Apr 21, 2017

Seeing the same issues; same setup

@kavdev
Copy link

kavdev commented Apr 21, 2017

@andreyfedoseev I have some time next week to work on this; let me know if you have an idea of what might be causing this. Also let me know if you need any debug data.

@kakulukia
Copy link
Author

Sadly I can't remember what happened half a year ago other than what's written down here. Didn't continue working on that project since then.

@gabrielelucci
Copy link

I can confirm that the bug is still here. The generated sourceMappingURL is wrong.

I'm also using libsass compiler and didn't test other compilers, perhaps the issue is only related to libsass compiler.

gabrielelucci added a commit to gabrielelucci/django-static-precompiler that referenced this issue Apr 18, 2021
@andreyfedoseev
Copy link
Owner

This should be fixed now, the fix released in 2.3

@kavdev
Copy link

kavdev commented Nov 15, 2022

Woah, what a throwback 😃 Congrats on the release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants