Merge pull request #604 from ivandiazwm/master

Fix font-awesome issue
This commit is contained in:
Ivan Diaz 2019-08-10 15:00:40 +02:00 committed by GitHub
commit 051f2f567c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -12,8 +12,8 @@
<title>OpenSupports</title>
<link rel="stylesheet" href="<?=$url ?>/css/main.css">
<link rel="icon" type="image/x-icon" href="<?=$url ?>/images/icon.png">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
</head>
<body>
<div id="app"></div>
@ -28,6 +28,7 @@
<?php if (preg_match('~MSIE|Internet Explorer~i', $_SERVER['HTTP_USER_AGENT']) || (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0; rv:11.0') !== false)): ?>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=String.prototype.startsWith,Array.from,Array.prototype.fill,Array.prototype.keys,Array.prototype.find,Array.prototype.findIndex,Array.prototype.includes,String.prototype.repeat,Number.isInteger,Promise&flags=gated"></script>
<?php endif; ?>
<script src="<?=$url ?>/js/main.js"></script>
<script src="<?=$url ?>/vendor.js"></script>
<script src="<?=$url ?>/bundle.js"></script>
</body>
</html>

View File

@ -95,7 +95,9 @@ const config = env => {
'./src/.htaccess',
{from: './src/assets/images', to: 'images'},
]),
new BundleAnalyzerPlugin(),
new BundleAnalyzerPlugin({
analyzerMode: process.env.NODE_ENV !== 'production' ? 'server' : 'disabled'
}),
],
optimization: {
splitChunks: {