module.exports = {
    mode: "development",
    watch: true,
    entry: ["./src/index.ts", "./src/style/style.scss"],
    output: {
        filename: "bundle.js",
        path: __dirname + "/dist"
    },
    resolve: {
        extensions: [".ts", ".tsx", ".js", ".json"]
    },
    devtool: "source-map",
    module: {
        rules: [
            { test: /\.scss$/, use: ["style-loader", "css-loader", "sass-loader"] },
            { test: /\.ts?$/, loader: "ts-loader" }
        ]
    }
};
