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

27 lines (23 loc) 587 B
const { resolve } = require('path') const merge = require('webpack-merge') const commonConfigMaker = require('./webpack.common.maker') const baseDirectoryPath = __dirname const distDirectoryPath = resolve(baseDirectoryPath, 'dist') const clientDistDirectoryPath = resolve(distDirectoryPath, 'client') const config = { name: 'client', target: 'web', output: { library: 'SpreeSDK', path: clientDistDirectoryPath } } const merged = merge( commonConfigMaker({ babelPresetEnvConfig: { targets: '> 0.25%, not dead' } }), config ) module.exports = merged