Code Monkey home page Code Monkey logo

Comments (8)

jimaek avatar jimaek commented on May 23, 2024

Do you have an example of what exactly you want to do?
Thanks

from bootstrapcdn.

 avatar commented on May 23, 2024

Hi jimaek.

Do you have an example of what exactly you want to do?

example_webcomponent_boostrapcdn.html

<!doctype html>
<html lang="en">
  <head>
    <!--- /* Required meta tags */ --->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!--- /* Bootstrap CSS cdn 1 */ --->
    <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">

    <!--- /* Imports polyfill with cdn external 2 ajax  */ --->
    <script src="https://cdn.bootstrapcdn.net/npm/[email protected]/dist/webcomponents/webcomponents-lite.min.js">

    <!--- /* Imports custom element with cdn external 2 ajax */ --->
    <link rel="import" href="https://cdn.bootstrapcdn.net/npm/[email protected]/dist/webcomponents/hello-world.html">

    <title>I love bootstrapcdn and web components!</title>

  </head>
  <body>

    <!--- /* Runs custom element from cdn1(jsdelivr), cdn2(bootstrapcdn) */ --->
    <hello-world who="Unicorn"></hello-world>

    <!--- /* Optional JavaScript; choose one of the two! */ --->
    <!--- /* Option 1: Bootstrap Bundle with Popper */ --->

    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>

    <!--- /* Option 2: Separate Popper and Bootstrap JS */ --->
    <!--
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
    -->
  </body>
</html>

description-code: As we can see in this example, we have the official boostrap(cdn-1 in jsdelivr), boostrapcdn(cdn-2 for web component).

from bootstrapcdn.

jimaek avatar jimaek commented on May 23, 2024

The BootstrapCDN at the current stage is a jsDelivr endpoint that pulls files from the official Bootstrap NPM packages.

So I dont understand the question because if Bootstrap is not distributing web components then obviously we cant add them.

But also there is nothing stopping you from using any other web component made by anyone and hosted on Github or NPM since jsDelivr supports both.

The only question that I am not sure about is if they are going to work without the correct HTML mime-type. @MartinKolarik

from bootstrapcdn.

 avatar commented on May 23, 2024

Hi jimaek.

The BootstrapCDN at the current stage is a jsDelivr endpoint that pulls files from the official Bootstrap NPM packages.
So I dont understand the question because if Bootstrap is not distributing web components then obviously we cant add them.

So... I asked about it, boostrap by default does not have webcomponents, I was thinking of creating web components and hosting in this repository to distribute to all people. That way, anyone could reuse the code and redistribute it in their own way too.

But also there is nothing stopping you from using any other web component made by anyone and hosted on Github or NPM since jsDelivr supports both.

I understand what you said and I agree with this.

from bootstrapcdn.

MartinKolarik avatar MartinKolarik commented on May 23, 2024

@codehangen in that case you're welcome to do it and distribute it as a separate package via npm and jsDelivr.

from bootstrapcdn.

 avatar commented on May 23, 2024

Hi MartinKolarik. So... What do you think of the idea of a web components in cdn?

from bootstrapcdn.

MartinKolarik avatar MartinKolarik commented on May 23, 2024

Please see https://www.jsdelivr.com/ - you'll get it on our CDN by simply publishing it to npm.

from bootstrapcdn.

 avatar commented on May 23, 2024

Hi all. All my doubts were clarified.... so... please close this issue... and thanks for all the feedback.

from bootstrapcdn.

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.