refactor: update runWebpackCompiler to accept options object

This commit is contained in:
Cohee
2025-02-19 22:03:43 +02:00
parent bb64e9b5c5
commit 380bd4ef4b
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import getWebpackServeMiddleware from '../src/middleware/webpack-serve.js';
const middleware = getWebpackServeMiddleware();
await middleware.runWebpackCompiler(true);
await middleware.runWebpackCompiler({ forceDist: true });