Q: Webpack won't compile with 'new webpack.LoaderOptionsPlugin' I have the following in webpack.config.js:
var webpack = require('webpack');
const path = require('path');
const WebpackShellPluginNext = require('webpack-shell-plugin-next');

module.exports = {
  entry: [
    'script-loader!jquery/dist/jquery.min.js',
    'script-loader!foundation-sites/dist/foundation.min.js',
    './app/app.jsx'
  ],
  externals: {
    jquery: 'jQuery'
  },
    plugins: [
    new WebpackShellPluginNext({
      '$': 'jquery',
      'jQuery': 'jquery'
    }),
    new webpack.LoaderOptionsPlugin({
         // test: /\.xxx$/, // may apply this only for some modules
         options: {
           sassLoader:{
      includePaths: [
            path.resolve(__dirname, './node_modules/foundation-sites/scss')
      ]
    }
         }
       })
  ],
  output: {
    path: __dirname,
    filename: './public/bundle.js'
  },
  resolve: {
     modules: [__dirname, 'node_modules'],
    alias: {
      applicationStyles: 'app/styles/app.scss'
    },
    extensions: ['', '.js', '.jsx']
  },
  module: {
    rules: [
      {
        loader: 'babel-loader',
        options: {
          presets: ['react', 'es2015', 'stage-0']
        },
        test: /\.jsx?$/,
        exclude: /(node_modules|bower_components)/
      },
   devtool: 'eval-cheap-module-source-map'
};

It should run fine, but I am getting the following error:
TypeError: webpack.LoaderOptionsPlugin is not a constructor

If I remove everything inside webpack.LoaderOptionsPlugin, then the files inside  ./node_modules/foundation-sites/scss are not seen by the scss in the application.
I get the following error:
ERROR in ./app/styles/app.scss (./node_modules/css- 
loader/index.js!./node_modules/sass-loader/dist/cjs.js!./app/styles/app.scss)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: File to import not found or unreadable: util/util.
    on line 43 of app/styles/base/_foundation-settings.scss
    from line 4 of app/styles/app.scss
>> @import 'util/util' 

Anyone knows what's going on and how to solve it?
