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) 305 B
const del = require('del') class ClearBeforeEmit { constructor(path) { this.path = path } apply(compiler) { compiler.hooks.emit.tapPromise('Clear Types Plugin', () => { console.log(`Removing ${this.path}`) return del([this.path]) }) } } module.exports = ClearBeforeEmit