Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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/
const mix = require('laravel-mix');
mix.js( 'src/js/app.js', 'public/js/app.js')
.sass( 'src/scss/app.scss', 'public/css/app.css')
.copyDirectory('src/img', 'public/img')
.options({
processCssUrls: false,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment