Reduce the impact of aui, aui-experimental, and jQuery-Impromptu on the size of the minimized app bundle

This commit is contained in:
Lyubomir Marinov 2016-12-03 19:26:19 -06:00
parent fd24595baf
commit 4a8eca2020
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'
}