vbenjs / vite-plugin-html

A vite plugin for processing html. It is developed based on lodash template
MIT License
601 stars 96 forks source link

fix: issue #134 #137

Closed ryomahan closed 11 months ago

ryomahan commented 11 months ago

fix issue #134 without broken code

Tips for the one

I create a selfuse version package named ryomahan-vite-plugin-html, if you really need it you can install by npm install ryomahan-vite-plugin-html, srouce code in ryomahan/vite-plugin-html

oinochoe commented 10 months ago

@ryomahan I installed version 3.2.1 but I am still getting the following error:

WARN  plugin 'vite:html' uses deprecated 'enforce' option. Use 'order' option instead.                
WARN  plugin 'vite:html' uses deprecated 'transform' option. Use 'handler' option instead.

Do you know the reason? 😢

ryomahan commented 10 months ago

@ryomahan I installed version 3.2.1 but I am still getting the following error:

WARN  plugin 'vite:html' uses deprecated 'enforce' option. Use 'order' option instead.                
WARN  plugin 'vite:html' uses deprecated 'transform' option. Use 'handler' option instead.

Do you know the reason? 😢

owner don't release new version, so you need add viteNext: true in this plugin's config

ryomahan commented 10 months ago

@jinmao88

sorry for @ you again,

140 has been merged but there is no new release for this package.

oinochoe commented 10 months ago

@ryomahan Thanks, I solved via viteNext option. What I'm curious about is that the method seems to simply handle exceptions with an if statement, so I wonder if it is a permanent method. Would it be a good option if another version is created in the future?

ryomahan commented 10 months ago

@oinochoe You can see #134 and #140

134 We discussed this issue at length

140 I solved the problem with tips from #134

The problem is that #140 has been merged but not released.