Sha256: 21f9b407b0c625e45cb79b512738c4bd5d11017c0eaa583fb3e74272488064f3

Contents?: true

Size: 990 Bytes

Versions: 22

Compression:

Stored size: 990 Bytes

Contents

const webpack = require('webpack');
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');

const extractCSS = new ExtractTextPlugin('styles.css');

module.exports = {
  entry: ['./src/index.jsx'],
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'bundle.js'
  },
  module: {
    rules: [
      {
        test: /\.(js|jsx)$/,
        use: {
          loader: 'babel-loader',
          options: {
            presets: ['env', 'react']
          }
        }
      },
      {
        test: /\.css$/,
        use: extractCSS.extract({
          use: {
            loader: 'css-loader',
            options: {
              minimize: true
            }
          },
          fallback: 'style-loader'
        })
      },
    ]
  },
  plugins: [
    extractCSS,
    new UglifyJSPlugin(),
    new webpack.ProvidePlugin({
      $: 'jquery',
      jQuery: 'jquery'
    })
  ]
};

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
passenger-6.0.13 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.12 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.11 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.10 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.9 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.8 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.7 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.6 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.5 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.4 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.3 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.2 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.1 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.0 resources/templates/error_renderer/with_details/webpack.config.js
passenger-5.3.7 resources/templates/error_renderer/with_details/webpack.config.js
passenger-5.3.6 resources/templates/error_renderer/with_details/webpack.config.js
passenger-5.3.5 resources/templates/error_renderer/with_details/webpack.config.js
passenger-5.3.4 resources/templates/error_renderer/with_details/webpack.config.js
passenger-5.3.3 resources/templates/error_renderer/with_details/webpack.config.js
passenger-5.3.2 resources/templates/error_renderer/with_details/webpack.config.js