UNPKG

@spree/storefront-api-v2-sdk

Version:

Node module to easily integrate your JavaScript or TypeScript application with Spree API V2. You can create an entirely custom Storefront in JS/TS with this package including one page checkout, Single Page Apps, PWAs and so on

17 lines (13 loc) 295 B
import del from 'del' class DeleteBeforeRun { constructor(path) { this.path = path } apply(compiler) { compiler.hooks.beforeRun.tapPromise('Clear path', () => { console.log(`Removing ${this.path}`) return del([this.path]) }) } } export default DeleteBeforeRun