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

34 lines (30 loc) 767 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 serverDistDirectoryPath = resolve(distDirectoryPath, 'server') const nodeExternals = require('webpack-node-externals') const config = { name: 'server', externals: [ nodeExternals({ whitelist: [/^@babel\/runtime/, /^regenerator-runtime/] }) ], target: 'node', output: { path: serverDistDirectoryPath } } const merged = merge.strategy({ entry: 'prepend' })( commonConfigMaker({ babelPresetEnvConfig: { targets: { node: '8' } } }), config ) module.exports = merged