Files
superset2/superset/templates/superset/base.html
Jianchao Yang c36a7e3ada chore: allow webpack-dev-server proxy to any destination (#9296)
One of the pain points in developing Superset frontend code is the lack
of testing data. Local installation often do not have enough examples
setup to test all edge cases.

This change allows `webpack-dev-server` to proxy to any remote Superset
service, but the same time replaces frontend asset references in HTML
with links to local development version. This allows developers to test
with production data locally, tackling edge cases all while maintaining
the productivity of editing the code locally.
2020-03-17 15:37:07 -07:00

37 lines
1.2 KiB
HTML

{#
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
#}
{% extends "appbuilder/baselayout.html" %}
{% from 'superset/partials/asset_bundle.html' import css_bundle, js_bundle with context %}
{% block head_css %}
{{ super() }}
<link rel="icon" type="image/png" href="/static/assets/images/favicon.png">
{{ css_bundle("theme") }}
{% endblock %}
{% block head_js %}
{{ super() }}
{{ js_bundle("theme") }}
{% endblock %}
{% block tail_js %}
{{ super() }}
{{ js_bundle("preamble") }}
{% endblock %}