stidges / laravel-mix-mjml

Laravel Mix plugin to compile MJML files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: File not output in respective directory

Jamesking56 opened this issue · comments

webpack.mix.js

const mix = require('laravel-mix');
require('laravel-mix-mjml');

mix
  .mjml('src', 'public', {
    extension: '.html',
    beautify: true,
    minify: false
  })
;

Folder structure:

public
src
├── directory
    ├── 1.mjml

Expected directory output after running npm run dev:

public
├── directory
    ├── 1.html
src
├── directory
    ├── 1.mjml

Actual directory output after running npm run dev:

public
src
├── directory
    ├── 1.mjml
    ├── 1publichtml     <---- wtf?

Thanks @stidges 👍

Published v2.0.1 just now - let me know if that resolved your issue!

Just tested and it works perfectly 👍