Repository navigation
@rollup/plugin-html: How to use normally #1385
Replies: 1 comment
|
The first screenshot shows I reproduced that exact error with Rollup 1.32.1, rollup-plugin-typescript2 0.20.1, TypeScript 3.9.10 and @rollup/plugin-html 0.2.4. The HTML plugin has an async hook, which that older cache has trouble hashing. For that reproduction, adding plugins: [
html({
publicPath: 'https://example.invalid/assets/',
}),
typescript({
tsconfig: workSpaceDir + '/tsconfig.json',
clean: true,
}),
]This trades away the plugin's incremental cache, so builds may be slower. It doesn't require changing the public URL. The generated HTML in my test contained There is also a documented Those are pinned reproduction versions, not a recommendation to downgrade. I haven't run your LayaAir IDE environment, and its bundled plugin versions aren't shown in the screenshots. Check which typescript2 version Laya actually loads before applying the option; |
Uh oh!
There was an error while loading. Please reload this page.
When I use laya to compile, the following problems will occur. Do you know about this problem, or how to better set the publicpath in the laya compilation environment next time

All reactions