webpack-hud

Webpack HUD, for showing error messages

MIT 18 个版本
安装
npm install webpack-hud
yarn add webpack-hud
pnpm add webpack-hud
bun add webpack-hud
README

Webpack HUD, displaying errors in app

Webpack TypeScript demo

Usage

npm i --save-dev webpack-hud
module.exports = {
  entry: {
    main: [
      "webpack-hud", // <-- put package here, before your code
      "./src/main",
    ],
  },
  output: {
    filename: "bundle.js",
    path: "build/",
  },
  module: {
    rules: [
      {
        test: /\.tsx?$/,
        loader: "awesome-typescript-loader",
        exclude: /node_modules/,
      },
    ],
  },
  resolve: {
    extensions: [".tsx", ".ts", ".js"],
  },
};

How does it work?

I copied the code to started another Sockjs channel listening to Webpack compilation results. And an element is appended to the <body /> to display the content.

Develop

cd example/
../node_modules/.bin/webpack-dev-server --hot-only --hot

License

MIT

版本列表
0.1.2 2018-08-20
0.1.2-a5 2018-08-20
0.1.2-a4 2018-08-20
0.1.2-a3 2018-08-20
0.1.2-a2 2018-08-20
0.1.2-a1 2018-08-20
0.1.1 2017-01-10
0.1.0 2016-12-20
0.0.10 2016-11-08
0.0.9 2016-07-21
0.0.8 2016-06-06
0.0.7 2016-05-30
0.0.6 2016-05-30
0.0.5 2016-05-23
0.0.4 2016-05-19
0.0.3 2016-05-19
0.0.2 2016-05-18
0.0.1 2016-05-18