philicevic / mix-html-builder

A quick laravel mix extension to build up html templates from partials and layouts.
MIT License
19 stars 8 forks source link

Error when building HTML file with linked stylesheet : document is not defined #33

Open naourass opened 3 years ago

naourass commented 3 years ago

Linking stylesheet to HTML returns an error when trying to build. Any workaround to fix this issue ?

<!-- index.html -->

...
<head>
    <title>Document</title>
    <link rel="stylesheet"  href="app.css">
</head>
...

After running npx mix :

Error: ...\src\index.html:287
    var style = document.createElement('style');
                ^
  ReferenceError: document is not defined
naourass commented 3 years ago

HTML Builder is not compatible with Laravel Mix' version above 6.0.0

philicevic commented 3 years ago

@naourass Why should you close this issue if it is not fixed? Even if the problem is compability with Laravel Mix 6, the error still remains and should get fixed.

matt-shirey commented 2 years ago

I'm assuming this isn't fixed still as I'm running into an issue where it doesn't like me referencing any CSS or JS from external files.

PVasili commented 4 months ago

Laravel Mix > 6 doesn't work either This plugin dead now?