1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
const FileManagerPlugin = require("filemanager-webpack-plugin");
export default { plugins: [ new FileManagerPlugin({ events: { onEnd: { copy: [ { source: "/path/fromfile.txt", destination: "/path/tofile.txt" }, { source: "/path/**/*.js", destination: "/path" }, ], move: [ { source: "/path/from", destination: "/path/to" }, { source: "/path/fromfile.txt", destination: "/path/tofile.txt" }, ], delete: ["/path/to/file.txt", "/path/to/directory/"], mkdir: ["/path/to/directory/", "/another/directory/"], archive: [ { source: "/path/from", destination: "/path/to.zip" }, { source: "/path/**/*.js", destination: "/path/to.zip" }, { source: "/path/fromfile.txt", destination: "/path/to.zip" }, { source: "/path/fromfile.txt", destination: "/path/to.zip", format: "tar", }, { source: "/path/fromfile.txt", destination: "/path/to.tar.gz", format: "tar", options: { gzip: true, gzipOptions: { level: 1, }, globOptions: { dot: true, }, }, }, ], }, }, }), ], };
|