tooling: Remove static/node_modules symlink.

It appears not to have been useful and makes it marginally harder to
reason about how module resolution works.  Paths to static content in
node_modules should be resolved through Webpack instead.

(This node_modules symlink was originally created in the pre-webpack world
where all of our static asset paths were based in static/.)

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2019-06-27 14:42:16 -07:00
committed by Tim Abbott
parent 297c79eaa9
commit 02d19d48fc
3 changed files with 3 additions and 4 deletions

View File

@@ -312,7 +312,7 @@ exports.set_up = function () {
if (page_params.development_environment) {
// Usually the Django templates handle this path stuff
// for us, but in this case we need to hardcode it.
zxcvbn_path = '/static/node_modules/zxcvbn/dist/zxcvbn.js';
zxcvbn_path = '/webpack/zxcvbn.js';
}
$.getScript(zxcvbn_path, function () {
$('#pw_strength .bar').removeClass("fade");