Skip to content

Instantly share code, notes, and snippets.

@ivanvermeyen
Forked from calebporzio/webpack.mix.js
Created March 19, 2019 17:51
Show Gist options
  • Save ivanvermeyen/9fdcee581ab514f1afc87b7a18c85e8f to your computer and use it in GitHub Desktop.
Save ivanvermeyen/9fdcee581ab514f1afc87b7a18c85e8f to your computer and use it in GitHub Desktop.
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