mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 06:03:34 +01:00
tmp
This commit is contained in:
parent
cb50156fe0
commit
91b22030e2
2 changed files with 12 additions and 0 deletions
|
@ -110,6 +110,11 @@ exports.expressCreateServer = async (hookName, args) => {
|
|||
path: path.join(settings.root, 'var/js'),
|
||||
filename: '[name]-[contenthash].js',
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'ep_etherpad-lite': path.join(settings.root, 'src'),
|
||||
},
|
||||
},
|
||||
});
|
||||
const stats = await util.promisify(compiler.run.bind(compiler))();
|
||||
console.log(`webpack stats:\n${stats}`);
|
||||
|
|
|
@ -6,6 +6,13 @@
|
|||
// sends the CLIENT_VARS message.
|
||||
randomVersionString: <%-JSON.stringify(settings.randomVersionString)%>,
|
||||
};
|
||||
|
||||
// Allow other frames to access this frame's modules.
|
||||
window.require = __webpack_require__;
|
||||
window.require.resolve = __webpack_require__.resolve;
|
||||
window.require.cache = __webpack_module_cache__;
|
||||
window.require.resolveTmp = require.resolve('ep_etherpad-lite/static/js/pad_cookie');
|
||||
|
||||
const basePath = new URL('..', window.location.href).pathname;
|
||||
window.$ = window.jQuery = require('../../src/static/js/rjquery').jQuery;
|
||||
window.browser = require('../../src/static/js/vendors/browser');
|
||||
|
|
Loading…
Reference in a new issue