You've already forked serverless-webpack
mirror of
https://github.com/encounter/serverless-webpack.git
synced 2026-03-30 11:37:58 -07:00
be20b6db5e
* Updated TypeScript example * Updated offline example * Updated multiple statically example * Updated include npm example * Update babel example * Updated dynamic example * Updated babel multi static example
24 lines
563 B
JavaScript
24 lines
563 B
JavaScript
/*
|
|
* WARNING!
|
|
*
|
|
* This example is only there to show that you _can_ overtake the configuration
|
|
* manually. This is *strongly discouraged* since serverless-webpack V3 as it
|
|
* does not work with individual packaging of functions and prevents you to
|
|
* use optimizations like Webpack's tree shaking.
|
|
*/
|
|
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: {
|
|
first: './first.js',
|
|
second: './second.js'
|
|
},
|
|
target: 'node',
|
|
output: {
|
|
libraryTarget: 'commonjs',
|
|
path: path.join(__dirname, '.webpack'),
|
|
filename: '[name].js'
|
|
},
|
|
};
|