Made it possible to disable minification again
parent
b8a4333d1b
commit
22eaa6ffc0
|
@ -1,3 +1,6 @@
|
||||||
|
<%
|
||||||
|
var settings = require("ep_etherpad-lite/node/utils/Settings");
|
||||||
|
%>
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
|
@ -268,13 +271,20 @@
|
||||||
<script type="text/javascript" src="../static/js/require-kernel.js"></script>
|
<script type="text/javascript" src="../static/js/require-kernel.js"></script>
|
||||||
<script type="text/javascript" src="../static/js/jquery.js"></script>
|
<script type="text/javascript" src="../static/js/jquery.js"></script>
|
||||||
<script type="text/javascript" src="../socket.io/socket.io.js"></script>
|
<script type="text/javascript" src="../socket.io/socket.io.js"></script>
|
||||||
<script type="text/javascript" src="../javascripts/lib/ep_etherpad-lite/static/js/pad.js?callback=require.define"></script>
|
<% if (settings.minify) { %>
|
||||||
|
<script type="text/javascript" src="../javascripts/lib/ep_etherpad-lite/static/js/pad.js?callback=require.define"></script>
|
||||||
|
<% } %>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var clientVars = {};
|
var clientVars = {};
|
||||||
(function () {
|
(function () {
|
||||||
require.setRootURI("../javascripts/src");
|
<% if (settings.minify) { %>
|
||||||
require.setLibraryURI("../javascripts/lib");
|
require.setRootURI("../javascripts/src");
|
||||||
require.setGlobalKeyPath("require");
|
require.setLibraryURI("../javascripts/lib");
|
||||||
|
require.setGlobalKeyPath("require");
|
||||||
|
<% } else { %>
|
||||||
|
require.setRootURI("../static/js");
|
||||||
|
require.setLibraryURI("../static/plugins");
|
||||||
|
<% } %>
|
||||||
|
|
||||||
var plugins = require('ep_etherpad-lite/static/js/pluginfw/plugins');
|
var plugins = require('ep_etherpad-lite/static/js/pluginfw/plugins');
|
||||||
plugins.update(function () {
|
plugins.update(function () {
|
||||||
|
|
Loading…
Reference in New Issue