GithubHelp home page GithubHelp logo

Comments (5)

pbugnion avatar pbugnion commented on May 19, 2024 1

Thanks for submitting this! @tcbegley -- I'm happy to look at this since I put some of the initial infrastructure in place.

from dash-bootstrap-components.

pbugnion avatar pbugnion commented on May 19, 2024

@T4rk1n Under what conditions do _js_dist["dev_package_path"] and _js_dist["external_url"] get used?

At the moment, we don't publish dash_bootstrap_components to NPM, so having a link to unpkg seems a bit meaningless. While we do want to publish to NPM, I think we will probably publish a bundle that is optimized for building additional JS components, not as a faithful representation of the current bundle.

from dash-bootstrap-components.

T4rk1n avatar T4rk1n commented on May 19, 2024

They are optional keys.

  • dev_package_path is used for serving the dev bundle for debugging the front end and more dev features. It is served when the key is found in _js_dist and app.run_server(debug=True).
  • external_url is used when found in the _js_dist and app.scripts.config.serve_locally=False, it is the current default of dash when found.
  • relative_package_path is the main path to the local resources and used by default when other conditions are false.

So if you don't want to publish on npm just don't include the external_url, with dash 1.0.0 the default will be to serve the resources locally.

from dash-bootstrap-components.

pbugnion avatar pbugnion commented on May 19, 2024

Perfect, thank you for the explanation.

I suggest we try to include a dev bundle, probably as a new PR separate to #94.

from dash-bootstrap-components.

pbugnion avatar pbugnion commented on May 19, 2024

I've opened issue #100 for creating a development bundle. Everything else in this issue is addressed in PR #94, so I'm closing this.

Thanks for your help!

from dash-bootstrap-components.

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.