pksjce / webpack-internal-examples

16 stars 10 forks source link

no webpack.config.js in repo #3

Open fleur opened 5 years ago

fleur commented 5 years ago

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

wendesun commented 5 years ago

I also have the same question!