Create vendors bundle
This commit is contained in:
parent
2b8dc55ff0
commit
561d3782e9
|
@ -42,4 +42,17 @@ module.exports = {
|
|||
contentBase: './dist',
|
||||
hot: true
|
||||
},
|
||||
|
||||
optimization: {
|
||||
splitChunks: {
|
||||
cacheGroups: {
|
||||
commons: {
|
||||
test: /[\\/]node_modules[\\/]/,
|
||||
name: 'vendors',
|
||||
chunks: 'all'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<link rel="redirect_uri" href="{{ .RedirectURI }}" />
|
||||
<link rel="stylesheet" href="/public/vendors.css" />
|
||||
<link rel="stylesheet" href="/public/index.css" />
|
||||
<link rel="stylesheet" href="https://unpkg.com/prismjs@1.20.0/themes/prism-tomorrow.css">
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/>
|
||||
|
@ -97,6 +98,7 @@
|
|||
[[/results]]
|
||||
</ul>
|
||||
</div>
|
||||
<script async src="/public/vendors.bundle.js"></script>
|
||||
<script async src="/public/index.bundle.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue
Block a user