Skip to content

Instantly share code, notes, and snippets.

@vanaf1979
Last active February 16, 2020 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanaf1979/e8aaaabcea10c74b40cb3fa22b061ede to your computer and use it in GitHub Desktop.
Save vanaf1979/e8aaaabcea10c74b40cb3fa22b061ede to your computer and use it in GitHub Desktop.
Gist for my "WordPress: Laravel Mix, Sass and ES6 Modules in theme development" tutorial at https://since1979.dev/wordpress-laravel-mix-sass-and-es6-modules-in-theme-development/
// Import components.
import Example from './components/example.js';
// Initialize your components on DOM Ready.
$(document).ready( () => {
Example.init({
setting: 'New setting'
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment