Is it possible to use Snowpack alongside rollup plugins like rollup-plugin-skypin? #3693
Answered
by
tropicalraisel
tropicalraisel
asked this question in
Q&A
-
In a perfect world, I'd like to use There's the // Snowpack Configuration File
// See all supported options: https://www.snowpack.dev/reference/configuration
const skypin = require("rollup-plugin-skypin")
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
/* ... */
},
plugins: [
[
"snowpack-plugin-rollup-bundle",
{
// emitHtmlFiles: boolean,
// preserveSourceFiles: boolean,
// equivalent to inputOptions.input from Rollup
// entrypoints: string | string [] | { [entryName: string]: string },
extendConfig: (config) => {
// https://rollupjs.org/guide/en/#outputoptions-object
config.outputOptions.plugins.push(skypin())
// https://rollupjs.org/guide/en/#inputoptions-object
config.inputOptions.plugins.push(skypin())
config.plugins.push(skypin())
console.log(config)
return config
}
}
]
],
packageOptions: {
/* ... */
},
devOptions: {
/* ... */
},
buildOptions: {
/* ... */
},
}; |
Beta Was this translation helpful? Give feedback.
Answered by
tropicalraisel
Sep 3, 2021
Replies: 1 comment
-
I figured out how to get the same effect through Snowpack itself: https://github.com/TropicalRaisel/avalanche |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tropicalraisel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I figured out how to get the same effect through Snowpack itself: https://github.com/TropicalRaisel/avalanche