Steven Silvester
07afafca73
workaround for webpack crypto ( #6197 )
4 years ago
Afshin T. Darian
53c6ef0710
Switch webpack to production mode
5 years ago
Afshin Taylor Darian
79fc76e890
Merge pull request from GHSA-hwvq-6gjx-j797
...
* sanitizer fix
* Pass sanitizer options explicitly
5 years ago
Min RK
8a644a9794
restore r.js-based build system from 4.x
9 years ago
Jason Grout
b3936cb3b8
Polyfill promises from the page template.
...
Doing this from webpack as a plugin caused https://github.com/ipython/ipywidgets/issues/844 (and probably other issues we haven’t noticed), and also forced us to use the es6-promise Promise object instead of the native one.
Fixes https://github.com/ipython/ipywidgets/issues/844
9 years ago
Grant Nestor
4df3314761
Provide `Promise` via webpack
9 years ago
Grant Nestor
7e3e9f31aa
Add es6-promise polyfill to webpack config
9 years ago
Grant Nestor
a9ccff38cd
Use absolute path for `output.path` and remove `output.publicPath`
10 years ago
Grant Nestor
78f8a42658
Define webpack publicPath
...
Silent source map warnings in Chrome DevTool: `Source map
http://localhost:8888/static/notebook/js/built/main.min.js.map points
to the files missing from the workspace:
[webpack:///./notebook/static/notebook/js/main.js]`
10 years ago
Grant Nestor
961b1c0ba0
Use webpack "inline-source-map"
...
> We switched to inline-source-map in JupyterLab because it was
misbehaving:
https://github.com/jupyter/jupyterlab/blob/master/jupyterlab/webpack.con
f.js#L20
https://github.com/jupyter/notebook/issues/1668#issuecomment-238640610
10 years ago
Steven Silvester
d223e96fe1
Switch to xterm for the terminal emulator
10 years ago
Steven Silvester
a58cb91219
Allow for a bare 'codemirror' import
10 years ago
Steven Silvester
8966a1c61f
Avoid bundling CodeMirror due to relative imports
10 years ago
Steven Silvester
6205ba9a21
Unify handling of CodeMirror
...
Load codemirror as a script tag
Load codemirror synchronously
More cleanup of codemirror handling
Make the config more succinct
Reinstate mode/meta
10 years ago
Steven Silvester
523756a491
Fix handling of default cm modes
10 years ago
Steven Silvester
01ffff73dd
Unify the codemirror imports
10 years ago
Matthias Bussonnier
12b48343cb
dynamic sourcemaps
10 years ago
Matthias Bussonnier
ab85f165c7
Create shortcut editor for the notebook
...
1) finish the step allowing the use of es6
- this include some tweak to web pack configuration to speed up
recompile in watch mode (in particular cache sourcemaps).
- enable eslint (error only), on obvious mistakes.
- setup babel to compile to es5 as a target.
2) Make the test pass under Casper that does not always have
`Function.prototype.bind` defined, which we cannot patch only in the
tests.
3) Write an actual shortcut editor that list and allow to modify most of
the command mode shortcut.
The logic to persist the shortcuts is a bit tricky as there are default
keyboard shortcuts, and so when you "unbind" them you need to re-unbind
them at next startup. This does not work for a few shortcut for
technical reasons: `<Esc>`, `<Shift>`, as well as `<Ctrl-Shift-P>` and `<F>`
which register asynchronously, so are not detected as "default"
shortcuts.
10 years ago
Matthias Bussonnier
1096410fcf
Try es6 and add a few features for shortcut editor.
10 years ago
Thomas Kluyver
c6fe4db8e8
Don't use arrow functions in webpack js config
...
The => syntax doesn't work on the version of Node currently packaged in
Ubuntu - which is admittedly two years old, but it's what the
development install instructions point people to.
10 years ago
Jonathan Frederic
e64f1f9dc2
Dynamically set base url
10 years ago
Jonathan Frederic
b0fb5df3ad
Add source maps, chunks, and remove previous build tool
10 years ago
Jonathan Frederic
18edcd3fb4
Allow old style imports, but deprecate them
10 years ago
Jonathan Frederic
c4c16a76b8
Disallow dynamic loading of jquery and friends
...
Because it is a very bad idea. Don't do it. Seriously!
10 years ago
Jonathan Frederic
d340a794fc
Compile services/contents
10 years ago
Jonathan Frederic
e409dd1a2c
Install webpack and configure scripts for execution of webpack
10 years ago
Jonathan Frederic
e32adbe912
Add base webpack config
10 years ago