text: const path = require('path');
  const PugPlugin = require('../../../');
  
  module.exports = {
    mode: 'production',
    devtool: false,
  
    resolve: {
      alias: {
        Images: path.join(__dirname, 'src/assets/images/'),
      },
    },
  
    output: {
      path: path.join(__dirname, 'public/'),
      publicPath: '/',
      filename: '[name].[contenthash:8].js',
    },
  
    entry: {
      index: './src/views/index.pug',
    },
  
    plugins: [
      new PugPlugin({
        // enable inject inline svg asset
        //inlineAsset: true,
        modules: [
          PugPlugin.extractCss({
            // css output filename
            filename: 'assets/css/[name].[contenthash:8].css',
          }),
        ],
      }),
    ],
  
    module: {
      rules: [
        {
          test: /\.pug$/,
          loader: PugPlugin.loader,
          options: {
            method: 'render',
          },
        },
  
        {
          test: /\.(css|sass|scss)$/,
          use: ['css-loader', 'sass-loader'],
        },
  
        {
          test: /\.(png|svg)$/i,
          type: 'asset/resource',
          generator: {
            filename: 'assets/img/[name].[hash:8][ext]',
          },
        },
      ],
    },
  };