I’m not explicitly using Webpack to compile my assets, but rather a wrapper around it called Laravel Mix. You can scan through the repo and check out its stock config. I’m not using any additional config other than including the transform-object-rest-spread plugin in my .babelrc file and loading in Dotenv.
My webpack.mix.js is as follows:
let mix = require('laravel-mix');
const Dotenv = require('dotenv-webpack');
mix.webpackConfig({
plugins: [
new Dotenv()
]
});
mix.setPublicPath('frontend')
.setResourceRoot('../')
.js('resources/assets/js/app.js', 'frontend/js')
.sass('resources/assets/sass/app.scss', 'frontend/css');
My uploaded extension zip is here.
Mix offers a way to extract out vendor files, so I was planning on just doing that and re-submitting. However, I don’t know if Twitch wants each plugin extracted individually, or if I can group them all in a vendor.js file. I was planning on taking the single vendor.js route, re-submitting, and seeing what they say.