webpack-internal-examples icon indicating copy to clipboard operation
webpack-internal-examples copied to clipboard

no webpack.config.js in repo

Open fleur opened this issue 6 years ago • 1 comments

Hello. I tried to use the compiler-example code in my setup, but get errors, so I cloned the repo to start from there, but there is no webpack.config.js file in the compiler-example directory. It would be nice to have a working example to start from.

If it matters, this is the error I get trying to instantiate webpack.Compiler with my own config (which works if I simply compile via webpack(config):

/Users/fleur/work/troutman-dragan/exploration/node_modules/webpack/lib/RequestShortener.js:16
	return request.replace(NORMALIZE_SLASH_DIRECTION_REGEXP, "/");
	               ^

TypeError: Cannot read property 'replace' of undefined

thanks, fleur

fleur avatar Dec 24 '18 13:12 fleur

I also have the same question!

wendesun avatar Aug 28 '19 10:08 wendesun