使用方法 const WebpackCopyFile = require('webpack-copy-file) ... plugins: [ new WebpackCopyFile({ source: __dirname + '/static', target: __dirname + '/dist/static' }) ]