diff options
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/webpack.config.js b/webpack.config.js index 5a7d6718..de2bb8b6 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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: { |