Skip to content

Commit 83bc050

Browse files
committed
chore: cleanup
1 parent 9e9937d commit 83bc050

File tree

72 files changed

+98
-2579
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+98
-2579
lines changed

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
dist/
2+
@@deprecated/
23
*.d.ts
34
*.js
4-
*.cjs
5+
*.cjs

@querycap-dev/webpack-browser-sync/src/WebpackOptions.ts renamed to @@deprecated/webpack-browser-sync/src/WebpackOptions.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export const createMiddlewaresForWebpack = (webpackConfig: webpack.Configuration
6767
if (req.method === "GET" && req.url === "/") {
6868
devMiddleware.waitUntilValid(() => {
6969
const indexFile = path.join(webpackConfig.output!.path!, index);
70+
// @ts-ignore
7071
res.end(devMiddleware.context.outputFileSystem.readFileSync(indexFile));
7172
});
7273
} else {
@@ -75,6 +76,7 @@ export const createMiddlewaresForWebpack = (webpackConfig: webpack.Configuration
7576
const contentType = mime.getType(req.url!);
7677
contentType && res.setHeader("content-type", contentType);
7778
const filename = webpackConfig.output!.path! + ".." + req.url!;
79+
// @ts-ignore
7880
res.end(devMiddleware.context.outputFileSystem.readFileSync(filename));
7981
} catch (e) {
8082
next();

0 commit comments

Comments
 (0)