django-static-precompiler
django-static-precompiler copied to clipboard
COMPILED/COMPILED
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?
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 :/
Seeing the same issues; same setup
@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.
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.
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.
This should be fixed now, the fix released in 2.3
Woah, what a throwback 😃 Congrats on the release!