1.0.0 • Published 4 years ago

copy-running-files-plugin v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

CopyRunningFilesPlugin

用于将多个糅合在一起的项目进行抽离

原理: 记录 webpack 打包时运行的文件, 然后进行拷贝

使用方法

 new CopyRunningFilesPlugin({
      splitFrom: path.resolve(__dirname),  // 必传 package.json所在的文件夹目录
      target: path.resolve(__dirname, "../target") // 必传   target为抽离文件放置的目录
 })