Nuclear Powered Mushroom

    @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": [
          "**/*"
        ]
      },
    }

    Keywords

    none

    Install

    npm i @dotdev/serverless-webpack-compiler

    DownloadsWeekly Downloads

    3

    Version

    1.1.2

    License

    ISC

    Unpacked Size

    53.6 kB

    Total Files

    23

    Last publish

    Collaborators

    • samuel-dotdev
    • dotdev-alex
    • adendotdev
    • p_tul
    • laure-dot-dev
    • adamdemirel
    • brendon-dotdev
    • psj
    • 8eecf0d2
    • oscarstranger
    • dotdev-bo
    • dotdev-support
    • dotdev-eric