Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to reference in-memory bundle from webpack-dev-middleware ? #1281

Closed
Wangggym opened this issue May 27, 2022 · 2 comments
Closed

How to reference in-memory bundle from webpack-dev-middleware ? #1281

Wangggym opened this issue May 27, 2022 · 2 comments

Comments

@Wangggym
Copy link

Wangggym commented May 27, 2022

Bug report

image

` const path = require('path'); const myOutputFileSystem = require('my-fs'); const mkdirp = require('mkdirp'); const webpackConfig = require('../../webpack.client.dev.js');

myOutputFileSystem.join = path.join.bind(path); // no need to bind
myOutputFileSystem.mkdirp = mkdirp.bind(mkdirp); // no need to bind
const compiler = webpack(webpackConfig);

const devMiddleware = koaConnect(
webpackDevMiddleware(compiler, {
publicPath: webpackConfig.output.publicPath,
outputFileSystem: myOutputFileSystem,
})
);
`

Actual Behavior

I use this code from the readme. But there happened an error.

Expected Behavior

I want to reference in-memory bundle from webpack-dev-middleware, how to do?

How Do We Reproduce?

Please paste the results of npx webpack-cli info here, and mention other relevant information

@alexander-akait
Copy link
Member

Please provide npx webpack-cli info

@alexander-akait
Copy link
Member

Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants