Skip to content
This repository has been archived by the owner on Jun 30, 2020. It is now read-only.

Latest commit

 

History

History
27 lines (21 loc) · 657 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 657 Bytes

webpack-dat

Serves a Webpack configuration plus static files over P2P Dat. Beaker Browser supports live reloading out of the box!

npm install --save-dev webpack-dat

Example usage

webpackDev(
  {
    webpack: {
      mode: "production",
      entry: "./src/script.js",
      output: { path: "/" },
    },
    staticFiles: "./public",
  },
  function(datUrl) {
    console.log("Dat URL: " + datUrl);
  },
);

For a full, working example, look no further.

image