Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A webpack.mix.js file for writing NPM packages the way you write JS in a Laravel app.
let mix = require('laravel-mix');
mix.js('src/index.js', 'dist/foo.js').sourceMaps();
mix.webpackConfig({
output: {
libraryTarget: 'umd',
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment