DEV Community

Discussion on: Setup Phoenix with Svelte+Rollup

Collapse
koder profile image
Ben Woodward

This was helpful thanks. I found that it's not necessary to create a 'watch' script in package.json. You can just run rollup directly:

  watchers: [
    rollup: [
      "--config",
      "--watch",
      cd: Path.expand("../assets", __DIR__)
    ]
Enter fullscreen mode Exit fullscreen mode

Just published an Svelte SSR plugin for Phoenix that might be helpful for any readers of this post: github.com/benwoodward/elixir_svel...

Collapse
joshnuss profile image
Joshua Nussbaum Author

Very cool package! thanks for sharing.