You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the build or dev commands generates main.css in the target directory, rather than styles.css. This appears to be esbuild's doing. I was able to work around the problem by installing a local, up-to-date copy of esbuild, deleting the bundled esbuild from obsidian-plugin-cli, and using the following esbuild.config.js:
Perhaps something like this plugin should be added to the build process by default? (Also, bumping the esbuild version seems like a good idea, since the bundled version doesn't provide an onEnd hook.)
Last, but not least, it appears that the dev command does not watch esbuild.config.js, so you have to kill and restart it for config changes to take effect.
The text was updated successfully, but these errors were encountered:
Okay the esbuild version bump should be going out.
I actually had trouble w/ the .css file being the wrong name on output but I thought I'd fixed that. I'll dig back into that and get it fixed up for the next release.
Sure. By the way, rather than having a special option for a style sheet, shouldn't the plugin just import any css or scss files it needs? There's no need to specify the file externally then.
Running the build or dev commands generates main.css in the target directory, rather than styles.css. This appears to be esbuild's doing. I was able to work around the problem by installing a local, up-to-date copy of esbuild, deleting the bundled esbuild from obsidian-plugin-cli, and using the following esbuild.config.js:
Perhaps something like this plugin should be added to the build process by default? (Also, bumping the esbuild version seems like a good idea, since the bundled version doesn't provide an onEnd hook.)
Last, but not least, it appears that the dev command does not watch esbuild.config.js, so you have to kill and restart it for config changes to take effect.
The text was updated successfully, but these errors were encountered: