webpack-dat

0.1.0 • Public • Published

webpack-dat

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

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

/webpack-dat/

    Package Sidebar

    Install

    npm i webpack-dat

    Weekly Downloads

    1

    Version

    0.1.0

    License

    ISC

    Unpacked Size

    138 kB

    Total Files

    13

    Last publish

    Collaborators

    • rjkip