obartra/ssim

View on GitHub
webpack.config.js

Summary

Maintainability
A
0 mins
Test Coverage
const path = require("path");

module.exports = {
  entry: "./src/index.ts",
  module: {
    rules: [
      {
        test: /\.tsx?$/,
        use: "ts-loader",
        exclude: /node_modules/
      }
    ]
  },
  devtool: "source-map",
  resolve: {
    extensions: [".ts"]
  },
  output: {
    filename: "ssim.web.js",
    library: "ssim",
    libraryTarget: "umd",
    path: path.resolve(__dirname, "dist")
  }
};