mirror of
https://github.com/zulip/zulip.git
synced 2026-07-09 21:21:47 +08:00
Ever since we started bundling the app with webpack, there’s been less and less overlap between our ‘static’ directory (files belonging to the frontend app) and Django’s interpretation of the ‘static’ directory (files served directly to the web). Split the app out to its own ‘web’ directory outside of ‘static’, and remove all the custom collectstatic --ignore rules. This makes it much clearer what’s actually being served to the web, and what’s being bundled by webpack. It also shrinks the release tarball by 3%. Signed-off-by: Anders Kaseorg <[email protected]>
12 lines
368 B
JavaScript
12 lines
368 B
JavaScript
/* eslint-env commonjs */
|
|
// eslint-disable-next-line no-unused-vars
|
|
/* global __webpack_public_path__:writable */
|
|
|
|
"use strict";
|
|
|
|
const {page_params} = require("./page_params");
|
|
|
|
// Webpack exposes this global for dynamic configuration of publicPath.
|
|
// https://webpack.js.org/guides/public-path/#on-the-fly
|
|
__webpack_public_path__ = page_params.webpack_public_path;
|