Missing webpack.config.js from previous commit.
authorAlexandre Segura <mex.zktk@gmail.com>
Thu, 09 Feb 2017 16:14:53 +0100
changeset 316 ffa87fe82904
parent 315 f5cae9eaa296
child 317 3cb75bbbb8b2
Missing webpack.config.js from previous commit.
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",