Giter Site home page Giter Site logo

Extension css for output about gulp-postcss HOT 2 CLOSED

alkorlos avatar alkorlos commented on August 11, 2024
Extension css for output

from gulp-postcss.

Comments (2)

w0rm avatar w0rm commented on August 11, 2024

I would rather pipe the result through gulp-rename for more explicit transformation.

According to gulp plugin guidelines

Your plugin should only do one thing, and do it well.

For example, renaming affects the source map too, if we missed this, it could have caused unexpected behavior. gulp-rename is battle tested and there is no need to replicate its functionality.

If you still find this confusing, a PR to update the readme with how to use gulp-postcss and gulp-rename together to support .pcss extension is welcome!

from gulp-postcss.

alkorlos avatar alkorlos commented on August 11, 2024

Thank you for the answer!

I didn't think it was done on purpose. Gulp plugins for nunjucks, pug, scss, less etc. change the extension ourselves. Especially considering that in gulp 4 automatic renaming works fine (if I get right), for example in gulp-postcss this is done by adding file.extname = '.css' on line 50.

So yes, still find this confusing. Updating the readme to make it clearer.

from gulp-postcss.

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.