Blame view

webpack.config.js 808 Bytes
3a3ecabe   Imshann   init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  const path = require("path");
  
  module.exports = {
      // mode: "production",
      mode: "development",
      entry: "./build/index.js",
      output: {
          // bpms
          path: "/Users/shann/Project/essa/bpms/bpms-webapp/src/main/webapp/lib/ng-antd",
          // boss
          // path: "/Users/shann/Project/essa/boss/trunk/vendor-lib/ng-antd",
          // mvo
          // path: "/Users/shann/Project/essa/mvo/mvo-webapp/public/browser-vendor/ng-antd",
          // local
          // path: path.resolve(__dirname, "dist"),
          filename: "ng-antd.js",
      },
      module: {
          rules: [
              {
                  test: /\.html$/i,
                  loader: "html-loader",
              },
              {
                  test: /\.css$/i,
                  use: ["css-loader"],
              },
          ],
      },
  };