UNPKG

quasvel

Version:

Access and interact with Aragon Organizations and their apps.

42 lines (40 loc) 990 B
const path = require('path') const HtmlWebpackPlugin = require('html-webpack-plugin') const BundleAnalyzerPlugin = require('webpack-bundle-analyzer') .BundleAnalyzerPlugin module.exports = { entry: './src/index.tsx', devtool: 'inline-source-map', target: 'web', mode: process.env.NODE_ENV || 'development', module: { rules: [ { test: /\.tsx?$/, exclude: /node_modules/, use: [ { loader: 'ts-loader', options: { projectReferences: true }, }, ], }, ], }, resolve: { extensions: ['.tsx', '.ts', '.js'], mainFields: ['main', 'module', 'browser'], }, output: { filename: 'bundle.js', path: path.resolve(__dirname, 'dist'), }, devServer: { contentBase: path.join(__dirname, 'dist'), port: 1234, }, plugins: [ ...(process.env.BUNDLE_STATS === '1' ? [new BundleAnalyzerPlugin()] : []), new HtmlWebpackPlugin({ title: 'Org Viewer' }), ], }