How can I share webpack.config snippets between projects?
问题 I have several webpack configurations with very similar webpack.config files. I like to put webpack.config parts in a shared module that (I include the shared module with "npm link"), but that doesn't work as can't find dependencies, like "webpack" as it's the first dependency it encounters. 17 07 2017 14:49:32.694:ERROR [config]: Invalid config file! Error: Cannot find module 'webpack' at Function.Module._resolveFilename (module.js:470:15) First webpack.config lines: const webpack = require(