Sha256: 94c6fbd5c7cd632bf5abdaaabaff5d3d7d1ed2e3910f046c0f3aaedbc40c4aaa

Contents?: true

Size: 1004 Bytes

Versions: 11

Compression:

Stored size: 1004 Bytes

Contents

const webpack = require('webpack');
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const UglifyJSPlugin = require('terser-webpack-plugin');
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");

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: ['@babel/preset-env', '@babel/preset-react']
          }
        }
      },
      {
        test: /\.css$/,
        use: [MiniCssExtractPlugin.loader, "css-loader"]
      },
    ]
  },
  plugins: [
    new MiniCssExtractPlugin({filename:'styles.css'}),
    new UglifyJSPlugin(),
    new webpack.ProvidePlugin({
      $: 'jquery',
      jQuery: 'jquery'
    })
  ],
  optimization: {
    minimizer: [
      `...`,
      new CssMinimizerPlugin(),
    ],
  }
};

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
passenger-6.0.26 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.25 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.24 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.23 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.20 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.19 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.18 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.17 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.16 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.15 resources/templates/error_renderer/with_details/webpack.config.js
passenger-6.0.14 resources/templates/error_renderer/with_details/webpack.config.js