Merge pull request #1182 from jitsi/reduce-app.bundle.min.js

Reduce the impact of aui, aui-experimental, and jQuery-Impromptu on t…
This commit is contained in:
yanas 2016-12-05 18:00:17 -06:00 committed by GitHub
commit 4720088039
2 changed files with 4 additions and 13 deletions

View File

@ -84,9 +84,12 @@
"lint"
],
"browser": {
"aui": "@atlassian/aui/lib/js/aui.js",
"aui-css": "./node_modules/@atlassian/aui/dist/aui/css/aui.min.css",
"aui-experimental": "@atlassian/aui/lib/js/aui-experimental.js",
"aui-experimental-css": "./node_modules/@atlassian/aui/dist/aui/css/aui-experimental.min.css",
"autosize": "./node_modules/autosize/build/jquery.autosize.js",
"jQuery-Impromptu": "jQuery-Impromptu/src/jquery-impromptu.js",
"popover": "./node_modules/bootstrap/js/popover.js",
"strophe-disco": "./node_modules/strophejs-plugins/disco/strophe.disco.js",
"strophe-caps": "./node_modules/strophejs-plugins/caps/strophe.caps.jsonly.js",

View File

@ -112,19 +112,7 @@ var config = {
plugins: plugins,
resolve: {
alias: {
aui:
'@atlassian/aui/dist/aui/js/aui'
+ (minimize ? '.min' : '')
+ '.js',
'aui-experimental':
'@atlassian/aui/dist/aui/js/aui-experimental'
+ (minimize ? '.min' : '')
+ '.js',
jquery: 'jquery/dist/jquery' + (minimize ? '.min' : '') + '.js',
'jQuery-Impromptu':
'jQuery-Impromptu/dist/jquery-impromptu'
+ (minimize ? '.min' : '')
+ '.js'
jquery: 'jquery/dist/jquery' + (minimize ? '.min' : '') + '.js'
},
packageAlias: 'browser'
}