text: const path = require('path')
  
  const merge = require('webpack-merge')
  
  const ExtractTextPlugin = require('extract-text-webpack-plugin')
  const UglifyJSPlugin = require('uglifyjs-webpack-plugin')
  
  const commonConfig = require('./common.config')
  
  module.exports = merge(commonConfig, {
    module: {
      rules: [
        {
          test: /\.(s?css|sass)$/,
          use: ExtractTextPlugin.extract({
            fallback: 'style-loader',
            use: [
              {
                loader: 'css-loader',
                options: {
                  modules: true
                }
              },
              { loader: 'sass-loader' }
            ]
          })
        }
      ]
    },
    plugins: [
      new ExtractTextPlugin('style.css'),
      new UglifyJSPlugin()
    ],
    output: {
      publicPath: '/',
      filename: 'bundle.js',
      path: path.resolve(__dirname, '../../public')
    }
  })
  