Closed MangelMaxime closed 7 years ago
This is a great idea @MangelMaxime! Thank you :clap: :clap:
@whitetigle @alfonsogarciacaro
If one of you can test this PR and merge it if you agree with the change would be awesome :)
I am more works planned, for the generation of index.html but would be part of the update of the fable docs site. (make them more easier for newcomers, better demo/showcase, etc.)
Ok so it's working on my side. However, does it mean this:
<Compile Include="..\Fable.Import.Pixi.fs" />
<Compile Include="App.fs" />
can become:
<Compile Include="App.fs" />
@whitetigle 100% right. I always forget to clean the fsproj after cleaning files has Ionide doesn't complain about it.
This PR use webpack to include dependencies: For example for:
We generate:
"pixi.js" will be include from the node_modules.
I will work on it tomorrow again to not generate the source-map on production mode and see we can mutualise dependencies between the samples to avoid including pixi.js in each bundle.js files.
Edit: Big advantage of this PR, we can update the dependencies in one time just by updating the package.json and regenerating the samples.