{"size": 981, "ext": "js", "max_stars_repo_path": "product-detector-client/webpack.config.js", "max_stars_repo_name": "andreasschuele/product-detector", "max_stars_repo_stars_event_min_datetime": "2021-08-22T11:23:45.000Z", "max_stars_repo_stars_event_max_datetime": "2021-08-22T11:23:45.000Z", "max_issues_repo_path": "product-detector-client/webpack.config.js", "max_issues_repo_name": "andreasschuele/product-detector", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "product-detector-client/webpack.config.js", "max_forks_repo_name": "andreasschuele/product-detector", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.0204081633, "max_line_length": 75, "alphanum_fraction": 0.4821610601}
"use strict";

let path = require('path');

console.log(path.resolve(__dirname, "dist"));

module.exports = {
    mode: "development", 

    entry: "./src/index",

    output: {
        filename: "bundle.js",

        path: path.resolve(__dirname, "dist"),

        publicPath: "/",
    },

    devtool: "eval-cheap-source-map",

    resolve: {
        extensions: [".ts", ".tsx", ".js", ".json", ".css"]
    },

    module: {
        rules: [
            { test: /\.tsx?$/, loader: "ts-loader" },
            { test: /\.js$/, loader: "source-map-loader", enforce: "pre" },
            { test: /\.svg$/, loader: 'svg-loader' },
            { test: /\.css$/, use: ['style-loader', 'css-loader'] }
        ]
    },

    target: "web",

    watch: true,

    devServer: {
        host: "0.0.0.0",
        disableHostCheck: true,
        port: 8081,
        contentBase: path.join(__dirname, 'public'),
        hot: false,
        open: false,
        watchContentBase: true,

    }
};