Skip to content

Sassc/Scssc processors do not update imported files #330

@dagi3d

Description

@dagi3d

I was testing the new libsass integration and found the following issue:

Given the following stylesheets
application.scss

@import '_base';

_base.scss

body {
  background: lime;
}

asset_pipeline:

Sprockets::Helpers.configure do |config|
  require 'sprockets/sassc_processor'
  assets.register_transformer 'text/scss', 'text/css', Sprockets::ScsscProcessor.new

If I make any change in _base.scss using the Scssc processor, the styles are not updated. To make the application.scss be updated, I need to make a change on it so it is precompiled again with _base.scss as well.
If I just the default scss processor it works without any problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions