mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 07:34:42 -04:00
Split common vendor javascript into chunks
This commit is contained in:
parent
7086a8c5e7
commit
9c8752d452
8 changed files with 20 additions and 16 deletions
|
@ -17,14 +17,26 @@ module.exports = {
|
|||
new webpack.DefinePlugin({
|
||||
"require.specified": "require.resolve"
|
||||
}),
|
||||
new ExtractTextPlugin("[name].css")
|
||||
new ExtractTextPlugin("[name].css"),
|
||||
new webpack.optimize.CommonsChunkPlugin({
|
||||
name: "vendor",
|
||||
filename: "vendor.bundle.js",
|
||||
minChunks: Infinity,
|
||||
})
|
||||
],
|
||||
|
||||
entry: {
|
||||
index: path.join(__dirname, 'public/js/index.js'),
|
||||
public: path.join(__dirname, 'public/js/public.js'),
|
||||
slide: path.join(__dirname, 'public/js/slide.js'),
|
||||
locale: path.join(__dirname, 'public/js/locale.js')
|
||||
locale: path.join(__dirname, 'public/js/locale.js'),
|
||||
vendor: [
|
||||
"expose?$!expose?jQuery!jquery",
|
||||
"jquery-textcomplete",
|
||||
"jquery-mousewheel",
|
||||
"jquery-scrollspy/jquery-scrollspy",
|
||||
"bootstrap"
|
||||
]
|
||||
},
|
||||
|
||||
output: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue