UNPKG

@resin/pinejs

Version:

Pine.js is a sophisticated rules-driven API engine that enables you to define rules in a structured subset of English. Those rules are used in order for Pine.js to generate a database schema and the associated [OData](http://www.odata.org/) API. This make

25 lines (20 loc) 665 B
import * as webpack from 'webpack'; import sharedConfig = require('./config'); const config = { ...sharedConfig }; const root = config.entry; config.entry = root + '/src/server-glue/server'; // Disable node express and load express-emulator instead config.externals['express'] = false; if (config.resolve.alias == null) { config.resolve.alias = {}; } config.resolve.alias.express = root + '/src/express-emulator/express'; config.plugins = config.plugins.concat( new webpack.DefinePlugin({ 'process.browser': true, 'process.env.CONFIG_LOADER_DISABLED': true, 'process.env.DEBUG': true, 'process.env.SBVR_SERVER_ENABLED': true, }), ); export = config;