@astrodraw/astrochart
Version:
A free and open-source JavaScript library for generating SVG charts to display planets in astrology.
27 lines (26 loc) • 490 B
JavaScript
const path = require('path')
module.exports = {
entry: './project/src/index.ts',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: [/node_modules/, /.test.ts/],
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
mode: 'production',
output: {
clean: true,
path: path.resolve(__dirname, 'dist'),
filename: 'astrochart.js',
library: {
name: 'astrochart',
type: 'umd'
}
},
}