How to use the serverless-webpack.lib.entries function in serverless-webpack

To help you get started, we’ve selected a few serverless-webpack examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dherault / serverless-offline / examples / tools / serverless-webpack / webpack.config.js View on Github external
'use strict'

const { resolve } = require('path')
const { lib } = require('serverless-webpack')

module.exports = {
  devtool: 'source-map',
  entry: lib.entries,
  mode: 'development',
  module: {
    rules: [
      {
        loader: 'ts-loader',
        test: /\.tsx?$/,
      },
    ],
  },
  output: {
    filename: '[name].js',
    libraryTarget: 'commonjs',
    path: resolve(__dirname, 'dist'),
  },
  resolve: {
    extensions: ['.js', '.ts'],

serverless-webpack

Serverless plugin to bundle your javascript with Webpack

MIT
Latest version published 16 days ago

Package Health Score

83 / 100
Full package analysis

Popular serverless-webpack functions