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

Prevent Modifikation for special entries #52

Open fishmi opened 2 years ago

fishmi commented 2 years ago

I urgently need help for a project and just can't get ahead

Laravel-mix Version 6.1.14 Used Extensions: mix-html-builder, clean-webpack-plugin

My requirement:

Special entries are needed in the HTML code for subsequent processing in Adobe Campaign.

For example, one of the partials contains the following code

<%@ include view='VIEWSocialMediaLinksV2' %>

After the templates have been assembled using this partial this code is output in a modified form (with =""):

<%@ include="" view="VIEWSocialMediaLinksV2" %="">

Is there any way to prevent this modification?

Webpack.mix.js

  .html({
    htmlRoot: './src/*.html', // Your html root file(s)
    output: '', // The html output folder
    partialRoot: './src/',    // default partial path
    layoutRoot: './src/',    // default layouts path
    versioning: true,
    inject: false,
    minify: false
  })

This modification is not made when using "layout". Many thanks for the help

fishmi commented 2 years ago

Is there no one who can help me? It must be possible to determine for oneself which code may be changed and which may not.