@dotdev/serverless-webpack-compiler
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

Serverless Plugin Webpack Compiler

Plugin for Serverless which runs Webpack Compilers during the packaging routine.

Install

This package is private and requires access to the @dotdev organization to install.

yarn add -D @dotdev/serverless-webpack-compiler

Usage

Configure serverless.yml plugins, options & excludes.

plugins:
  - "@dotdev/serverless-webpack-compiler"

package:
  exclude:
    - "./node_modules/.bin/**" # Optional
    - "./node_modules/.cache/**" # Optional

custom:
  serverless-webpack-compiler:
    configuration: "webpack.config.js" # Relative path to webpack configuration.
    outputDirectory: "package" # Relative webpack output directory.

Configure webpack.config.js options.

const WebpackPluginServerless = require("@dotdev/serverless-webpack-compiler");

module.exports = {
  entry: WebpackPluginServerless.webpackEntry,
  output: WebpackPluginServerless.webpackOutput,
};

Yarn Workspaces

Configure package.json dependency hoisting.

{
  "workspaces": {
    "nohoist": [
      "**/*"
    ]
  },
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.2
    1

Package Sidebar

Install

npm i @dotdev/serverless-webpack-compiler

Weekly Downloads

1

Version

1.1.2

License

ISC

Unpacked Size

53.6 kB

Total Files

23

Last publish

Collaborators

  • dotdev-richard
  • dotdev-joel
  • dotdev-alex
  • p_tul
  • brendon-dotdev
  • psj
  • 8eecf0d2
  • oscarstranger
  • dotdev-bo
  • dotdev-support
  • dotdev-eric