Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@playkit-js/webpack-common

kaltura3.9kMIT1.0.3

Common Webpack configuration for Kaltura player

@playkit-js/webpack-common, kaltura, player, webpack, common

readme

playkit-js-webpack-common

A shared common webpack configuration for kaltura-player-js

Usage

In your project run:

yarn add @playkit-js/webpack-common

In your webpack.config.js file, you can import and use the exported modules from @playkit-js/webpack-common.

For example:

const { insertStylesWithNonce } = require('@playkit-js/webpack-common');

module.exports = () => {
    return {
      module: {
        rules: [
          {
            test: /\.scss$/,
            use: [
              {
                loader: 'style-loader',
                options: {
                  insert: insertStylesWithNonce
                }
              }
            ]
          }
        ]
      }
    }
}

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

1.0.3 (2025-03-06)