Git Product home page Git Product logo

Comments (7)

lahmatiy avatar lahmatiy commented on June 19, 2024 2

@XhmikosR Yes, I'll try to figure it out now.

from csso-cli.

lahmatiy avatar lahmatiy commented on June 19, 2024 2

Fix shipped in 2.0.0 with other changes

from csso-cli.

Sorenjin avatar Sorenjin commented on June 19, 2024

We use server-side post-commit hooks to deploy changes to server. Thus we add map files to git.
Full path in "sources" makes work very annoying when your colleague change something in css and your working copy became partially invalid.

from csso-cli.

rgcv avatar rgcv commented on June 19, 2024

I'm amazed that, about a year later, this hasn't had much attention. It's a rather important feature for users who have workflows similar to the one mentioned above, where map files are committed into VCS. This can be rather bothering since absolute paths -- meaning personal OS file tree structure is also committed into VCS -- might contain sensitive information.. Might, may not, but it is a possibility

from csso-cli.

rgcv avatar rgcv commented on June 19, 2024

Here's a possible solution. Replace path.resolve with path.relative, just as is, having return relative paths with regards to the cwd to the input and/or output files.

csso-cli/index.js

Lines 207 to 215 in f79854f

if (!inputFile) {
inputFile = '<stdin>';
} else {
inputFile = path.resolve(process.cwd(), inputFile);
}
if (outputFile) {
outputFile = path.resolve(process.cwd(), outputFile);
}

Could be made an option, so one could optionally relativize paths and keep the absolute path alternative baked in as well.

from csso-cli.

XhmikosR avatar XhmikosR commented on June 19, 2024

@lahmatiy any chance you could get this fixed? I'm looking into switching to csso and it seems we are hitting this issue.

from csso-cli.

XhmikosR avatar XhmikosR commented on June 19, 2024

@lahmatiy: there's still an issue on Windows with v2.0.0:

dist\\css\\bootstrap-grid.css

I suggest that you either enable Windows testing on Travis or add AppVeyor :)

from csso-cli.

Related Issues (14)

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.