{"size": 945, "ext": "js", "max_stars_repo_path": "examples/typescript/webpack.config.js", "max_stars_repo_name": "megahertz/react-simple-wysiwyg", "max_stars_repo_stars_event_min_datetime": "2019-05-08T21:43:56.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-26T09:30:50.000Z", "max_issues_repo_path": "examples/typescript/webpack.config.js", "max_issues_repo_name": "megahertz/react-simple-wysiwyg", "max_issues_repo_issues_event_min_datetime": "2019-09-07T18:03:08.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-14T09:19:27.000Z", "max_forks_repo_path": "examples/typescript/webpack.config.js", "max_forks_repo_name": "megahertz/react-simple-wysiwyg", "max_forks_repo_forks_event_min_datetime": "2020-11-02T12:05:21.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-13T21:40:18.000Z"}
{"max_stars_count": 31, "max_issues_count": 8, "max_forks_count": 9, "avg_line_length": 19.6875, "max_line_length": 74, "alphanum_fraction": 0.5206349206}
/* eslint-disable strict,@typescript-eslint/no-var-requires,quote-props */

'use strict';

const path = require('path');

module.exports = {
  entry: ['./src/index.tsx'],
  mode: process.env.NODE_ENV || 'development',
  output: {
    filename: 'bundle.js',
    path: path.resolve('dist'),
    publicPath: '/dist/',
  },
  devServer: {
    host: '0.0.0.0',
    hot: true,
    lazy: false,
    filename: 'bundle.js',
    public: 'http://localhost:8080',
    publicPath: '/dist/',
  },
  devtool: 'source-map',
  module: {
    rules: [
      {
        test: /\.css$/i,
        use: ['style-loader', 'css-loader'],
      },
      {
        test: /.tsx?$/,
        loader: 'awesome-typescript-loader',
      },
    ],
  },
  externals: {
    react: 'React',
    'react-dom': 'ReactDOM',
  },
  resolve: {
    alias: {
      'react-simple-wysiwyg': path.resolve('../../src'),
    },
    extensions: ['.ts', '.tsx', '.js'],
  },
  stats: 'minimal',
};
