Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

@mixer/cdk-webpack-plugin

0.1.5 • Public • Published

cdk-webpack-plugin Build Status

This plugin is used for developing with custom controls. All custom control bundles are built with Webpack, and this plugin provides hooks for the CDK to collect data and upload bundles correctly.

Usage

This plugin requires Webpack version 4. You should import it, then add it to the plugins array in the webpack.config.js. Check out the HTML starter code for an example:

const { MixerPlugin } = require('@mixer/cdk-webpack-plugin');
 
// ...
 
plugins: [
  // The Mixer plugin hooks up all the ✨magic✨ for the development server
  // and uploading to mixer.com.
  new MixerPlugin({ homepage: 'src/index.html' }),
  // ...

Options

homepage (string) Required

Should point to your entry point, canonically called the index.html. This is the page loaded and embedded in a Mixer webpage when viewers navigate to the channel.

locales (string)

You can pass a glob to load folder of locale data. For more information about dealing with translations, check out the docs on our dev site.

Install

npm i @mixer/cdk-webpack-plugin

DownloadsWeekly Downloads

28

Version

0.1.5

License

MIT

Unpacked Size

161 kB

Total Files

98

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar