Skip to content

Need Clarification on scss_import_paths #33

Description

@LucyI

Have installed on a new MODX Cloud instance, 2.8.4.pl, with no other extras installed other than CssSweet.

Can't get imports to work in the chunk. The chunk that is created on installation has a commented import:
/* @import 'test.scss'; */

The test.scss file that was created on installation is located in assets/components/csssweet/scss/

What I tried that did not work:
I uncommented the @import line in the chunk. I assumed this would work as the plugin would know where to find the file. But did not work.
I added the full path in the @import statement.
I tried the above with the [[++assets_url]] placeholder and the [[++assets_path]] placeholder.
I tried adding the relative path (in the custom property set I'm using) in scss_import_paths , and tried the full path.
I also tried the above with the [[++assets_url]] placeholder, and the [[++assets_path]] placeholder.
Lastly I tried importing a different test.scss file that I placed in the custom folder that had been created when the minified css file was first made.

In all cases the minified file just shows the @import statement exactly as typed in the chunk, rather than actually importing the file contents. What am I missing?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions