提交 6251151f 编写于 作者: F Félix Queiruga

Separates vendor scripts

上级 17f575b4
...@@ -161,6 +161,8 @@ THE SOFTWARE. ...@@ -161,6 +161,8 @@ THE SOFTWARE.
<script src="${resURL}/scripts/msie.js" type="text/javascript"/> <script src="${resURL}/scripts/msie.js" type="text/javascript"/>
</j:if> </j:if>
<!-- Load vendor scripts common to all JS modules -->
<script src="${resURL}/jsbundles/vendors.js" type="text/javascript"/>
</head> </head>
<body id="jenkins" class="yui-skin-sam jenkins-${h.version}" data-version="${h.version}" data-model-type="${it.class.name}"> <body id="jenkins" class="yui-skin-sam jenkins-${h.version}" data-version="${h.version}" data-model-type="${it.class.name}">
<div id="main-panel" style="margin-left: 0;"> <div id="main-panel" style="margin-left: 0;">
......
...@@ -173,6 +173,8 @@ THE SOFTWARE. ...@@ -173,6 +173,8 @@ THE SOFTWARE.
<script src="${resURL}/scripts/msie.js" type="text/javascript"/> <script src="${resURL}/scripts/msie.js" type="text/javascript"/>
</j:if> </j:if>
<!-- Load vendor scripts common to all JS modules -->
<script src="${resURL}/jsbundles/vendors.js" type="text/javascript"/>
<script src="${resURL}/jsbundles/page-init.js" type="text/javascript"/> <script src="${resURL}/jsbundles/page-init.js" type="text/javascript"/>
</head> </head>
......
...@@ -80,14 +80,14 @@ module.exports = { ...@@ -80,14 +80,14 @@ module.exports = {
}, },
optimization: { optimization: {
splitChunks: { splitChunks: {
// chunks: 'async', chunks: 'async',
// cacheGroups: { cacheGroups: {
// commons: { commons: {
// test: /[\\/]node_modules[\\/]/, test: /[\\/]node_modules[\\/]/,
// name: 'vendors', name: 'vendors',
// chunks: 'all' chunks: 'all'
// } }
// } }
} }
}, },
resolve: { resolve: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册