Skip to content

Instantly share code, notes, and snippets.

@vanaf1979
Last active September 8, 2019 15:51
Show Gist options
  • Save vanaf1979/5f57fb167fda3066b5d10ad6a98552af to your computer and use it in GitHub Desktop.
Save vanaf1979/5f57fb167fda3066b5d10ad6a98552af to your computer and use it in GitHub Desktop.
Gist for my tutorial: Building a Gutenberg sidebar plugin Part 2: Adding structure and asset bundling https://vanaf1979.nl/building-a-gutenberg-sidebar-plugin-part-2-adding-structure-and-asset-bundling/
const mix = require('laravel-mix');
mix.autoload({})
.react('src/js/metatags.js', 'dist/js/metatags.js')
.sass('src/scss/metatags.scss', 'dist/css/metatags.css')
.webpackConfig({
externals: {
'react': 'React',
'react-dom': 'ReactDOM'
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment