andreyfedoseev / django-static-precompiler

Django Static Precompiler provides template tags and filters to compile CoffeeScript, LiveScript, SASS / SCSS, LESS, Stylus, Babel and Handlebars. It works with both inline code and external files.
Other
222 stars 60 forks source link

COMPILED/COMPILED #95

Closed kakulukia closed 1 year ago

kakulukia commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

Seeing the same issues; same setup

kavdev commented 7 years ago

@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 commented 7 years ago

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 commented 3 years ago

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.

andreyfedoseev commented 1 year ago

This should be fixed now, the fix released in 2.3

kavdev commented 1 year ago

Woah, what a throwback 😃 Congrats on the release!