text: // haxe neutralino setup
  
  const path = require('path');
  const MiniCssExtractPlugin = require('mini-css-extract-plugin');
  
  module.exports = {
    mode: 'development',
    devtool: 'source-map',
    entry: path.resolve(__dirname, './build.hxml'),
    // entry: path.resolve(__dirname, './src/app.ts'),
    module: {
      rules: [
        // all files with hxml extension will be handled by `haxe-loader`
        {
          test: /\.hxml$/,
          loader: 'haxe-loader',
          options: {
            debug: true
          }
        },
        {
          test: /\.css$/i,
          use: [
            {
              loader: MiniCssExtractPlugin.loader,
            },
            'css-loader',
          ],
        },
  
      ],
    },
  
    output: {
      filename: 'app.js',
      path: path.resolve(__dirname, './app/assets'),
    },
    plugins: [
      new MiniCssExtractPlugin({
        filename: 'app.css'
      }),
    ],
  };