chore(frontend): wip: comment out __webpack_public_path vars for build to succeed
This commit is contained in:
+17
-14
@@ -1,22 +1,25 @@
|
|||||||
|
import 'vite/modulepreload-polyfill';
|
||||||
import './core/trustedTypePolicies';
|
import './core/trustedTypePolicies';
|
||||||
declare let __webpack_public_path__: string;
|
|
||||||
declare let __webpack_nonce__: string;
|
|
||||||
|
|
||||||
// Check if we are hosting files on cdn and set webpack public path
|
// TODO: Vite should have __wepack_public_path support. Not looked into it yet.
|
||||||
if (window.public_cdn_path) {
|
// declare let __webpack_public_path__: string;
|
||||||
__webpack_public_path__ = window.public_cdn_path;
|
// declare let __webpack_nonce__: string;
|
||||||
}
|
|
||||||
|
|
||||||
// This is a path to the public folder without '/build'
|
// // Check if we are hosting files on cdn and set webpack public path
|
||||||
window.__grafana_public_path__ =
|
// if (window.public_cdn_path) {
|
||||||
__webpack_public_path__.substring(0, __webpack_public_path__.lastIndexOf('build/')) || __webpack_public_path__;
|
// __webpack_public_path__ = window.public_cdn_path;
|
||||||
|
// }
|
||||||
|
|
||||||
if (window.nonce) {
|
// // This is a path to the public folder without '/build'
|
||||||
__webpack_nonce__ = window.nonce;
|
// window.__grafana_public_path__ =
|
||||||
}
|
// __webpack_public_path__.substring(0, __webpack_public_path__.lastIndexOf('build/')) || __webpack_public_path__;
|
||||||
|
|
||||||
// This is an indication to the window.onLoad failure check that the app bundle has loaded.
|
// if (window.nonce) {
|
||||||
window.__grafana_app_bundle_loaded = true;
|
// __webpack_nonce__ = window.nonce;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// // This is an indication to the window.onLoad failure check that the app bundle has loaded.
|
||||||
|
// window.__grafana_app_bundle_loaded = true;
|
||||||
|
|
||||||
import app from './app';
|
import app from './app';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user