view webpack.config.ts @ 12:091a03abd6cb

fix a build warning
author drewp@localhost
date Fri, 06 Dec 2019 20:33:01 -0800
parents a9bc14e22e36
children
line wrap: on
line source

import path from "path";
import webpack from 'webpack';

const config: webpack.Configuration = {
    mode: "production",
    entry: './src/streamed-graph.ts',
    output: {
        filename: 'streamed-graph.bundle.js',
        path: path.resolve(__dirname, 'build')
    }, 
    module: {
        rules: [
            { test: /\.ts$/, use: 'ts-loader', exclude: /node_modules/ },
        ]
    }
};

export default config;