mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
21 lines
413 B
JavaScript
21 lines
413 B
JavaScript
const path = require('path');
|
|
const slsw = require('serverless-webpack');
|
|
|
|
module.exports = {
|
|
entry: slsw.lib.entries,
|
|
target: 'node',
|
|
module: {
|
|
loaders: [{
|
|
test: /\.js$/,
|
|
loaders: ['babel-loader'],
|
|
include: __dirname,
|
|
exclude: /node_modules/,
|
|
}],
|
|
},
|
|
output: {
|
|
libraryTarget: 'commonjs',
|
|
path: path.join(__dirname, '.webpack'),
|
|
filename: '[name].js',
|
|
},
|
|
};
|