Skip to content
Snippets Groups Projects
webpack.config.js 452 B
Newer Older
Kirill Schmidt's avatar
Kirill Schmidt committed
const path = require('path');

module.exports = {
  mode: "development",
  devtool: "inline-source-map",
  entry: {
    main: "./src/scripts/main.ts",
  },
  output: {
    path: path.resolve(__dirname, './dist'),
    filename: "main.js" // <--- Will be compiled to this single file
  },
  resolve: {
    extensions: [".ts", ".tsx", ".js"],
  },
  module: {
    rules: [
      {
        test: /\.tsx?$/,
        loader: "ts-loader"
      }
    ]
  }
};