Add webpack for external frontend libraries.

This commit is contained in:
Cohee
2024-10-16 22:00:14 +03:00
parent 725cfdebca
commit 4725b869eb
6 changed files with 968 additions and 12 deletions

View File

@ -0,0 +1,9 @@
import webpack from 'webpack';
import middleware from 'webpack-dev-middleware';
import { publicLibConfig } from '../../webpack.config.js';
export default function getWebpackServeMiddleware() {
const compiler = webpack(publicLibConfig);
return middleware(compiler, {});
}