| | |
| | | "eslint": "^7.32.0", |
| | | "eslint-plugin-prettier": "^3.4.1", |
| | | "eslint-plugin-vue": "^7.16.0", |
| | | "filemanager-webpack-plugin": "^6.1.6", |
| | | "image-webpack-loader": "^7.0.1", |
| | | "lint-staged": "^11.1.2", |
| | | "prettier": "^2.3.2", |
| | |
| | | |
| | | const Webpack = require("webpack"); |
| | | const WebpackBar = require("webpackbar"); |
| | | const FileManagerPlugin = require("filemanager-webpack-plugin"); |
| | | const dayjs = require("dayjs"); |
| | | const date = dayjs().format("YYYY_M_D"); |
| | | const time = dayjs().format("YYYY-M-D HH:mm:ss"); |
| | |
| | | }) |
| | | .end(); |
| | | }); |
| | | |
| | | if (build7z) { |
| | | config.when(process.env.NODE_ENV === "production", (config) => { |
| | | config |
| | | .plugin("fileManager") |
| | | .use(FileManagerPlugin, [ |
| | | { |
| | | onEnd: { |
| | | delete: [`./${outputDir}/video`, `./${outputDir}/data`], |
| | | archive: [ |
| | | { |
| | | source: `./${outputDir}`, |
| | | destination: `./${outputDir}/${abbreviation}_${outputDir}_${date}.7z`, |
| | | }, |
| | | ], |
| | | }, |
| | | }, |
| | | ]) |
| | | .end(); |
| | | }); |
| | | } |
| | | }, |
| | | runtimeCompiler: true, |
| | | productionSourceMap: false, |