Files
bee-dashboard/webpack.config.js
T
Bálint Ujvári 5bfe2a0331 Feat: FileManager (#98) (#703)
* feat: add file manager module

- Complete file manager implementation with UI/UX
- Add drive management functionality
- Add file upload/download with progress tracking
- Add stamp integration and handling
- Add bulk operations and context menus

Co-authored-by: Roland Seres <roland.seres90@gmail.com>
Co-authored-by: nidishk <nidishkrishnan45@gmail.com>
2025-11-12 11:26:00 +01:00

57 lines
1.3 KiB
JavaScript

// eslint-disable-next-line @typescript-eslint/no-var-requires
const Path = require('path')
// eslint-disable-next-line import/no-anonymous-default-export
module.exports = () => {
const entry = Path.resolve(__dirname, 'src', 'App.tsx')
return {
mode: 'production',
entry,
output: {
path: Path.resolve(__dirname, 'lib'),
filename: 'App.js',
library: 'beeDashboard',
libraryTarget: 'umd',
},
resolve: {
extensions: ['.css', '.png', '.svg', '.ttf', '.ts', '.tsx', '.js'],
},
devtool: 'source-map',
externals: {
// Use external version of React
// react: 'root React',
react: 'react',
'react-dom': 'react-dom',
},
target: 'web',
optimization: {
minimize: false,
},
module: {
rules: [
{
test: /\.css$/i,
use: ['style-loader', 'css-loader'],
},
{
test: /\.scss$/i,
use: ['style-loader', 'css-loader', 'sass-loader'],
},
{
test: /\.(jpe?g|png|ttf|eot|svg|woff(2)?)(\?[a-z0-9=&.]+)?$/,
use: ['base64-inline-loader'],
type: 'javascript/auto',
},
{
test: /\.(ts|js|tsx|jsx)$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
},
},
],
},
}
}