1 | const webpackConfig = require('../../webpack.config.base');
|
2 |
|
3 | const libraryName = 'service.middle.bundle';
|
4 |
|
5 | webpackConfig.entry = ['babel-polyfill', `${__dirname}/src/index.js`];
|
6 |
|
7 | webpackConfig.output.path = `${__dirname}/dist`;
|
8 | webpackConfig.output.publicPath = `${__dirname}\\dist`;
|
9 | webpackConfig.output.filename = `${libraryName}.js`;
|
10 | webpackConfig.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 |
|
20 | module.exports = webpackConfig;
|