26 Commits

Author SHA1 Message Date
Afshin T. Darian
53c6ef0710 Switch webpack to production mode 2021-08-10 23:18:56 +01:00
Afshin Taylor Darian
79fc76e890
Merge pull request from GHSA-hwvq-6gjx-j797
* sanitizer fix

* Pass sanitizer options explicitly
2021-08-05 12:50:10 -05:00
Min RK
8a644a9794 restore r.js-based build system from 4.x 2016-12-22 18:44:46 +01:00
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
2016-12-07 11:43:26 -08:00
Grant Nestor
4df3314761 Provide Promise via webpack 2016-09-26 08:54:32 -07:00
Grant Nestor
7e3e9f31aa Add es6-promise polyfill to webpack config 2016-09-21 11:12:33 -07:00
Grant Nestor
a9ccff38cd Use absolute path for output.path and remove output.publicPath 2016-08-15 12:29:22 -07:00
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]`
2016-08-12 13:29:45 -07:00
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
2016-08-12 13:28:53 -07:00
Steven Silvester
d223e96fe1 Switch to xterm for the terminal emulator 2016-07-05 09:09:01 -05:00
Steven Silvester
a58cb91219 Allow for a bare 'codemirror' import 2016-06-16 07:34:56 -05:00
Steven Silvester
8966a1c61f Avoid bundling CodeMirror due to relative imports 2016-06-16 06:52:46 -05:00
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
2016-06-15 09:10:20 -05:00
Steven Silvester
523756a491 Fix handling of default cm modes 2016-05-25 20:20:40 -05:00
Steven Silvester
01ffff73dd Unify the codemirror imports 2016-05-25 08:31:34 -05:00
Matthias Bussonnier
12b48343cb dynamic sourcemaps 2016-04-21 18:00:17 +02:00
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.
2016-04-21 18:00:17 +02:00
Matthias Bussonnier
1096410fcf Try es6 and add a few features for shortcut editor. 2016-04-14 16:49:35 +02:00
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.
2016-02-24 13:58:07 +00:00
Jonathan Frederic
e64f1f9dc2 Dynamically set base url 2016-02-22 07:30:56 -08:00
Jonathan Frederic
b0fb5df3ad Add source maps, chunks, and remove previous build tool 2016-02-22 07:30:56 -08:00
Jonathan Frederic
18edcd3fb4 Allow old style imports, but deprecate them 2016-02-22 07:30:56 -08:00
Jonathan Frederic
c4c16a76b8 Disallow dynamic loading of jquery and friends
Because it is a very bad idea.  Don't  do it.  Seriously!
2016-02-22 07:30:55 -08:00
Jonathan Frederic
d340a794fc Compile services/contents 2016-02-22 07:30:55 -08:00
Jonathan Frederic
e409dd1a2c Install webpack and configure scripts for execution of webpack 2016-02-22 07:30:55 -08:00
Jonathan Frederic
e32adbe912 Add base webpack config 2016-02-22 07:30:55 -08:00