first commit
This commit is contained in:
16
app_vue/node_modules/@vue/cli-service/lib/webpack/MovePlugin.js
generated
vendored
Normal file
16
app_vue/node_modules/@vue/cli-service/lib/webpack/MovePlugin.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
const fs = require('fs-extra')
|
||||
|
||||
module.exports = class MovePlugin {
|
||||
constructor (from, to) {
|
||||
this.from = from
|
||||
this.to = to
|
||||
}
|
||||
|
||||
apply (compiler) {
|
||||
compiler.hooks.done.tap('move-plugin', () => {
|
||||
if (fs.existsSync(this.from)) {
|
||||
fs.moveSync(this.from, this.to, { overwrite: true })
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user