Giter Site home page Giter Site logo

Using shins in AWS lambda about shins HOT 2 CLOSED

mermade avatar mermade commented on September 28, 2024
Using shins in AWS lambda

from shins.

Comments (2)

MikeRalphson avatar MikeRalphson commented on September 28, 2024

I think an option to override the default output directory would be useful. It might be time to move to a proper arguments parsing library like yargs. Very happy to work with you on a PR for this.

One other thing worth looking at might be shinola - if you cache everything else (css and js) all that needs to change for each API is the html file.

from shins.

TomiTakussaari avatar TomiTakussaari commented on September 28, 2024

So I investigated this a bit more, and it seems that inlining CSS, JS and images could be the best solution. I created PR to show case that.

This way there is no need create new files, and output html will be self containing, which works great, for my use case atleast.

Fonts are still loaded externally, and I don't think that will be easy to change.
But that is not problem for my case, as we will override lot of CSS anyway.

from shins.

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.