You've already forked serverless-webpack
mirror of
https://github.com/encounter/serverless-webpack.git
synced 2026-03-30 11:37:58 -07:00
19 lines
415 B
JavaScript
19 lines
415 B
JavaScript
'use strict';
|
|
|
|
const BbPromise = require('bluebird');
|
|
const fse = require('fs-extra');
|
|
|
|
module.exports = {
|
|
cleanup() {
|
|
const webpackOutputPath = this.webpackOutputPath;
|
|
|
|
this.options.verbose && this.serverless.cli.log(`Remove ${webpackOutputPath}`);
|
|
|
|
if (this.serverless.utils.dirExistsSync(webpackOutputPath)) {
|
|
fse.removeSync(webpackOutputPath);
|
|
}
|
|
|
|
return BbPromise.resolve();
|
|
},
|
|
};
|