Giter Site home page Giter Site logo

Comments (7)

chriseppstein avatar chriseppstein commented on August 22, 2024

There needs to be:

  1. A webkit bug filed/referenced about this issue so that we can understand it and track it.
  2. A bug filed against Sass, not sass-rails to address any line-length issues in :compressed mode.

For sass-rails it sounds like the only issue here is that the config.sass.style setting is not being respected by the compressor.

Is this a fair assessment?

from sass-rails.

colszowka avatar colszowka commented on August 22, 2024

Hi Chris, yes, that would be sufficient :)

from sass-rails.

chriseppstein avatar chriseppstein commented on August 22, 2024

Great. Can you please file a new bug against sass with the details?

from sass-rails.

chriseppstein avatar chriseppstein commented on August 22, 2024

Ok I think I might know what is going on here.

At one point in webkit's history they had a parsing bug if you used @charset anywhere but the first line of a file, they would drop everything to the end of the line. It is part of the spec that @charset is only legal on the first line. So to correct this, sass strips out any charset directive and sets a single charset at the top of the file. Perhaps you're using sprockets to concatenate many sass files resulting in triggering this @charset directive bug? If so, you need to file a bug against sprockets to handle this. Otherwise, don't use sprockets require and only use sass import directives.

Please reopen if I have misdiagnosed.

from sass-rails.

ekaitzht avatar ekaitzht commented on August 22, 2024

@colszowka could you fix this problem? It's happening to me the same.

from sass-rails.

colszowka avatar colszowka commented on August 22, 2024

@ekaitzht Sorry, not really. I think I moved over to doing sass include statements instead of requires, that usually is much better to work with than using sprockets anyway (it also works with plain css files, for example when you import them from bower components), so this went away. Originally I had changed the sass compression method to not compress though, as described in the initial post.

from sass-rails.

ekaitzht avatar ekaitzht commented on August 22, 2024

@colszowka ok thanks

from sass-rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.