Comments (5)
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.
@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.
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
andapp.run_server(debug=True)
.external_url
is used when found in the_js_dist
andapp.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.
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.
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)
- Support tooltips without IDs HOT 3
- [Bug] Console warning on dbc.Tooltip component HOT 3
- dbc.Tabs not showing all tabs in expanded mode in 1.4.1 HOT 1
- Is there a way to use an icon as a label in a dbc.Tab element? HOT 2
- Alert component breaks multi-page navigation HOT 1
- Dash & XLwings. Attempting to pre-load Excel before Dash callback to save load time. HOT 3
- dbc.Input no type = 'file' HOT 6
- dbc.TextArea n_submit should not increment for Shift+Enter? HOT 3
- Consider Supporting Hyperlinks in Carousel Images HOT 6
- Dropdown presentation in data table doesn't work HOT 1
- Keyword argument for value OR placeholder HOT 2
- BUG: max doesn't work on nested progress bar HOT 3
- Docs app not working with Dash 2.14.0 HOT 3
- Allow icons and html in `dbc.AccordionItem()` title HOT 3
- Remove migration guide in docs
- selected attribute for dbc.Select HOT 1
- `dbc.Checklist` does not accept `label` as `list[Component]` like `dcc.Checklist` does HOT 3
- dash_bootstrap_components version versus python version HOT 5
- Nested tabs in `Offcanvas` component trigger scroll up event on tab change HOT 2
- Tooltip closing race condition with children change callback HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dash-bootstrap-components.