asfktz / autodll-webpack-plugin

Webpack's DllPlugin without the boilerplate
MIT License
1.46k stars 80 forks source link

Autodll-webpack-plugin specifying node_modules in different projects #146

Open jweboy opened 4 years ago

jweboy commented 4 years ago

For example, I have two projects /a and /b. The current directory where the DLL needs to be compiled is /a, but the directory introduced by autodll-webpack-plugin is /b. I find that the plugin currently does not support this function.Then I found the point of the problem through the source code.

// https://github.com/asfktz/autodll-webpack-plugin/blob/master/src/paths.js
export const cacheDir = findCacheDir({ name: 'autodll-webpack-plugin' });

I found that the findCacheDir plugin was introduced but does not support thecwd attribute of this plugin to change the directory location that references autodll-webpack-plugin.So I suggest to add support for cwd attribute?