Comments (5)
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.
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.
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.
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.
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)
- noSourceMap option cannot be set -- no error message HOT 2
- Fix file count output when executing compile goal
- Watch goal HOT 5
- Build: mvn clean package fails HOT 1
- Watch: Not watching correct directory HOT 13
- [0.2.0] - Null Pointer Exception HOT 9
- Thread Safe and Update HOT 5
- Mark plugins goals as thread-safe, if possible HOT 1
- Update executables with latest Dart Sass release HOT 5
- File counter may give incorrect results if input folder and output folder are the same and there's at least one css file on the input folder HOT 1
- Add classpath to loadPath HOT 5
- noSourceMap isn't working HOT 2
- Filename question HOT 1
- As a user I'd like to choose the Dart Sass plugin version and have it downloaded automatically HOT 1
- Process exiting with code 64 HOT 7
- [enhancement] support maven proxy settings HOT 6
- The plugin should compile files in folders recursively, just like the CLI does
- Define character encoding scheme
- Upgrade executables to Dart Sass 1.49.9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dart-sass-maven-plugin.