JSPM

  • Created
  • Published
  • Downloads 3110
  • Score
    100M100P100Q127550F
  • License MIT

Common Webpack configuration for Kaltura player

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@playkit-js/webpack-common) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    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
                    }
                  }
                ]
              }
            ]
          }
        }
    }