@wavemaker/custom-widgets-m3
Version:
A collection of custom widgets
42 lines (41 loc) • 1.03 kB
JavaScript
var path = require('path');
module.exports = {
entry: './index.ts',
module: {
rules: [
{
test: /\.ts?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
{
test: /\.css$/,
use: ['style-loader', 'css-loader'],
exclude: /node_modules/,
},
{
test: /\.html$/,
use: 'html-loader',
exclude: /node_modules/,
},
{
test: /\.json$/,
type: 'json',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ['.ts', '.js', '.json', '.html', '.css'],
},
devtool: 'inline-source-map',
output: {
filename: 'index.js',
path: path.resolve(__dirname, 'dist/umd'),
library: {
type: 'umd',
name: 'wm_custom_widgets',
},
globalObject: 'window',
},
};