Giter VIP home page Giter VIP logo

Comments (5)

cleydyr avatar cleydyr commented on July 21, 2024

Hey, @DG606 .

Do you have a minimal example that I can use to reproduce that behavior?

Also, can you compile the files normally using the Dart Sass executable? If yes, then can you share the command and the file that is being compiled?

from dart-sass-maven-plugin.

DG606 avatar DG606 commented on July 21, 2024

Hi,
if i use the dartsass executeable with the command: sass --update src/main/webapp/resources:src/main/webapp/resources --no-source-map it compiles all my *.scss file in resources and subfolders. All css File in there will be ignored. So no error takes place. (Version 1.58.1) But the version in plugin is not the problem, i have change it to 1.58.1 lokal as a test.

The maven plugin includes all css Files for compiling. So i get an error. As an workaround I rename my *.css File to *.Css . So the plugin ignores it ;-) but this feels like a bad solution.

cssfile content (the '#{resource' will be replaces later at deployment of jsf application which i can't change:
@font-face {
src: url("#{resource['layout:icons/icons.eot']}");
src: url("#{resource['layout:icons/icons.eot']}#iefix") format('embedded-opentype'),
url("#{resource['layout:icons/icons.ttf']}") format('truetype'),
url("#{resource['layout:icons/icons.woff']}") format('woff'),
url("#{resource['layout:icons/icons.svg']}#icons") format('svg');
font-weight: normal;
font-style: normal;
}

from dart-sass-maven-plugin.

cleydyr avatar cleydyr commented on July 21, 2024

Hey, @DG606. Thanks for sharing a sample CSS file.

I see that that's the same behavior that you get if you use Dart Sass CLI in the many-to-one mode and the input folder and the output folder are different. So the plugin is behaving the same way the CLI does. Try to compile files in folder A to a different folder B and you'll get the same error.

As a workaround, can you try setting the inputFolder and outputFolder parameters for the plugin in your pom.xml and try to execute the plugin goal again?

from dart-sass-maven-plugin.

DG606 avatar DG606 commented on July 21, 2024

Hi,
yes it works if I use same input and output folder. Very strange! So I can use it but than I have to exclude generated css-files from my cvs. :-(
Thanks for your help.

from dart-sass-maven-plugin.

cleydyr avatar cleydyr commented on July 21, 2024

See sass/dart-sass#862

You're leveraging that feature of the CLI: if there's a .css file inside a directory and the destination is the same folder, then it won't be compiled, so that's why you see no error. You have to assume that .css files will be compiled if the source and destinations are different.

That being said, this is not something we'll fix so that we don't override the CLI behavior. Just set inputFolder and outputFolder to the same path.

from dart-sass-maven-plugin.

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.