fable-compiler / fable-templates

Templates for Fable projects maintained by fable-compiler org
MIT License
26 stars 16 forks source link

Start dotnet compiler in package.json instead of snowpack.config.js #53

Open MichaelMay81 opened 2 years ago

MichaelMay81 commented 2 years ago

Snowpacks plugin-run-script seems buggy:

Proposed solution: Instead of starting dotnet fable inside snowpack.config.js, start int in package.json

"scripts": {
    "postinstall": "dotnet tool restore",
    "dev": "dotnet fable watch src -o dist --run snowpack dev",
    "prebuild": "dotnet fable src -o dist",
    "build": "snowpack build",
    "clean": "rm -r dist build"
  },
MichaelMay81 commented 2 years ago

'devOptions: { output: "stream" }' gives better output with dotnet not being started by snowpack