Skip to content

Instantly share code, notes, and snippets.

@vanaf1979
Last active February 16, 2020 11:55
Show Gist options
  • Save vanaf1979/d8a7e4a91aa92ef190214c863a9912d6 to your computer and use it in GitHub Desktop.
Save vanaf1979/d8a7e4a91aa92ef190214c863a9912d6 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/
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