UNPKG

373 BJavaScriptView Raw
1const path = require("path");
2
3const dist = path.resolve(__dirname, "./dist");
4
5module.exports = {
6 entry: "./index.js",
7 output: {
8 path: dist,
9 publicPath: "/",
10 filename: "es5.js"
11 },
12 module: {
13 rules: [{
14 test: /\.(js)$/,
15 loader: "babel-loader"
16 }
17
18 ]
19 }
20};
\No newline at end of file