I had a Vite project for Vue2, It include a static html file.
like following
import template from 'editor.html';
export default {
template: template
}
When I ran yarn dev
, Terminal output:
node_modules/@gaoding/editor-framework/lib/base/editor.js:23:21: error: No loader is configured for ".html" files: node_modules/@gaoding/editor-framework/lib/base/editor.html 23 │ import template from './editor.html';
I tried to add some plugin below in vite.config.ts
, But all of these didn't work.
@rollup/plugin-html
rollup-plugin-html
rollup-plugin-htmlvue
How can I solve this problem.