Skip to content

Commit ecaa592

Browse files
committed
Fix webpack public path location
1 parent 2f3bae2 commit ecaa592

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

js/scripts/templates/js_index.mustache

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@
33
// Date: {{ now }}
44
//
55
{{#if top_level}}
6-
// Entry point for the notebook bundle containing custom model definitions.
7-
//
8-
// Setup notebook base URL
9-
//
10-
// Some static assets may be required by the custom widget javascript. The base
11-
// url for the notebook is not known at build time and is therefore computed
12-
// dynamically.
13-
__webpack_public_path__ = document.querySelector('body').getAttribute('data-base-url') + 'nbextensions/jupyter-threejs/';
146

157
// Export widget models and views, and the npm package version number.
168
module.exports['version'] = require('../package.json').version;

js/src/extension.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
// Entry point for the notebook bundle containing custom model definitions.
2+
//
3+
// Setup notebook base URL
4+
//
5+
// Some static assets may be required by the custom widget javascript. The base
6+
// url for the notebook is not known at build time and is therefore computed
7+
// dynamically.
8+
__webpack_public_path__ = document.querySelector('body').getAttribute('data-base-url') + 'nbextensions/jupyter-threejs/';
9+
10+
111
// Configure requirejs
212
if (window.require) {
313
window.require.config({

0 commit comments

Comments
 (0)