Replies: 1 comment
-
Hey @johnagan, we're about to release an update to our plugin interface with some enhancements to specifically support this behavior. Previously, custom build mapping wasn't really supported outside of our internal allow-list. If you feel comfortable writing your own Snowpack plugin:
If you want to keep the simplicity of using the CLIs:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm confused at the mechanism for changing file extensions on build. I have two filetypes I'm attempting to build
pug
andpcss
. Naturally, I would expectpug
to output ashtml
andpcss
tocss
.snowpack.config.json
. Both compiled properly, but output had the src extensions:I attempted to write my own plugin with a build script, but this didn't give me the option to change extensions.
I attempted to write my own loader like the docs describe, but I wasn't sure on how to call a loader since it wasn't an accepted
script-type
.Then I found this gem in the code. So I attempted various versions of
build:pcss->css
andbuild:pug->html
, but it never worked.I don't want to use the build command to call the CLI and specify input/output files, which seems like the only resort.
Beta Was this translation helpful? Give feedback.
All reactions