FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fable2-samples/nodejsbundle at master · fable-compiler/fable2-samples · GitHub

This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Fable Node.js Bundled App

This is a simple Fable Node.js app which is bundled with webpack. It's basically what we need to start working on Serverless functions for instance.

Requirements

Building and running the app

  • Install JS dependencies: npm install
  • Build Node.js app npm run build
  • Try Node.js app node build/App.js

Project structure

npm

JS dependencies are declared in package.json, while package-lock.json is a lock file automatically generated.

Fable-splitter

Webpack is a JS bundler with extensions, like a static dev server that enables hot reloading on code changes. Fable interacts with Webpack through the fable-loader. Configuration for Webpack is defined in the webpack.config.js file.

F#

The sample only contains two F# files: the project (.fsproj) and a source file (.fs) in the src folder.


Back | FazBrowse Home | New Git URL