rjkip / webpack-dat

Serves a live-reloading Webpack configuration plus static files over Dat :zap:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Serves a live-reloading Webpack configuration plus static files over Dat :zap:


Languages

Language:JavaScript 97.9%Language:HTML 2.1%