mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
23 lines
554 B
JavaScript
23 lines
554 B
JavaScript
const common = require('./webpack.common');
|
|
const { merge } = require('webpack-merge');
|
|
const path = require('path');
|
|
const sourcePath = path.join(__dirname, '../src');
|
|
|
|
module.exports = merge(common, {
|
|
mode: 'production',
|
|
entry: {
|
|
index: path.join(sourcePath, 'index.ts'),
|
|
'index.min': path.join(sourcePath, 'index.ts'),
|
|
},
|
|
output: {
|
|
filename: '[name].js',
|
|
path: path.resolve(__dirname, '../lib/esm'),
|
|
library: 'NextUI',
|
|
libraryTarget: 'umd',
|
|
globalObject: 'this',
|
|
},
|
|
optimization: {
|
|
minimize: true,
|
|
},
|
|
});
|