@mixer/cdk-webpack-plugin

Webpack plugin for Mixer interactive projects

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
01Jun 13, 2018Mar 23, 2018Minified + gzip package size for @mixer/cdk-webpack-plugin in KB

Readme

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.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.