cumquenumquam
Version:
Storybook is an open source tool for developing UI components in isolation for React, Vue and Angular. It makes building stunning UIs organized and efficient.
28 lines (26 loc) • 535 B
JavaScript
const path = require('path')
const pkg = require('./package.json')
module.exports = {
mode: 'production',
entry: {
index: './src/index.js'
},
output: {
path: path.resolve(__dirname, 'lib'),
filename: '[name].js',
libraryTarget: 'umd',
library: pkg.name,
umdNamedDefine: true,
globalObject: 'this'
},
resolve: {
extensions: ['.ts', '.tsx', '.js']
},
devtool: 'source-map',
optimization: {
minimize: true
},
module: {
rules: [{ test: /\.tsx?$/, loader: 'ts-loader' }]
}
}