# HG changeset patch # User Alexandre Segura # Date 1486653293 -3600 # Node ID ffa87fe82904d5f09d5b5579424a677160b5c0f7 # Parent f5cae9eaa296e76b179820812832e2b55c6eaaab Missing webpack.config.js from previous commit. diff -r f5cae9eaa296 -r ffa87fe82904 webpack.config.js --- a/webpack.config.js Thu Feb 09 16:13:10 2017 +0100 +++ b/webpack.config.js Thu Feb 09 16:14:53 2017 +0100 @@ -5,6 +5,10 @@ module.exports = { entry: { + vendor: [ + 'jquery', + 'bootstrap', + ], iconolab: [ './src_js/iconolab-bundle/src/main.js', './src_js/iconolab-bundle/src/main.scss', @@ -31,7 +35,7 @@ }, { test: /\.scss$/, - loader: ExtractTextPlugin.extract("style-loader", "css-loader?modules&importLoaders=1&localIdentName=[local]!resolve-url-loader!sass-loader"), + loader: ExtractTextPlugin.extract("style-loader", "css-loader?modules&importLoaders=1&localIdentName=[local]!resolve-url-loader!postcss-loader!sass-loader"), include: [ __dirname + '/src_js/iconolab-bundle/src', /node_modules/ @@ -67,6 +71,9 @@ ] }, plugins: [ + new webpack.optimize.CommonsChunkPlugin({ + name: 'vendor' + }), new ExtractTextPlugin("iconolab/css/[name].css"), new webpack.ProvidePlugin({ $: "jquery",