GithubHelp home page GithubHelp logo

Comments (6)

davej avatar davej commented on May 20, 2024

I'm closing this because it's not something I plan to support in the short-term, I may revisit it though.

If you want a quick-fix then you could do something like this with your package.json export script:

"scripts": {
  "start": "pingy dev",
  "export": "pingy export && find ./dist/ -name \"*.pug\" -type f -delete"
},

from pingy-cli.

mahmoudzadah avatar mahmoudzadah commented on May 20, 2024

Is this workaround still valid? doesn't seem to work anymore:
"export": "pingy export && find ./dist/ -name \"*.css\" -type f -delete"
I am still intrested in an option like this:
{ //... "sourceMap": false, //... }

from pingy-cli.

davej avatar davej commented on May 20, 2024

Is this workaround still valid?

It depends on your OS. If you're on windows then you probably want something like: pingy export && del /s dist/*.css. See here for more info: https://stackoverflow.com/questions/35957077/how-to-remove-all-files-with-specific-extension-in-folder

from pingy-cli.

mahmoudzadah avatar mahmoudzadah commented on May 20, 2024

The "del" command works by itself. But if I use it with pingy export, it's not.
I think it is executed before the "export" is completed. So the files are created after the del command.

from pingy-cli.

davej avatar davej commented on May 20, 2024

I'm guessing you're using powershell or something like that. See here: https://stackoverflow.com/questions/563600/can-i-get-to-work-in-powershell

from pingy-cli.

mahmoudzadah avatar mahmoudzadah commented on May 20, 2024

Thanks!

from pingy-cli.

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.