webpack.config.js
changeset 316 ffa87fe82904
parent 309 c5b524696fb3
--- 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",