UNPKG

662 BJavaScriptView Raw
1const webpackConfig = require('../../webpack.config.base');
2
3const libraryName = 'service.middle.bundle';
4
5webpackConfig.entry = ['babel-polyfill', `${__dirname}/src/index.js`];
6
7webpackConfig.output.path = `${__dirname}/dist`;
8webpackConfig.output.publicPath = `${__dirname}\\dist`;
9webpackConfig.output.filename = `${libraryName}.js`;
10webpackConfig.output.library = libraryName;
11// webpackConfig.externals = [
12// function(context, request, callback) {
13// if (request.indexOf("apollo-engine-binary") > -1) {
14// return callback(null, "commonjs " + request);
15// }
16// callback();
17// },
18// ]
19
20module.exports = webpackConfig;