react-js-loading-progress-bar
Version:
React JS loading progress (bar and throbber) component that shows estimated time left (if several requests need to be made) and progress bar with percentage.
23 lines (22 loc) • 458 B
JavaScript
var path = require("path");
module.exports = {
mode: "production",
entry: "./src/index.js",
output: {
path: path.resolve("build"),
filename: "index.js",
libraryTarget: "commonjs2"
},
module: {
rules: [
{ test: /\.js$/, exclude: /node_modules/, loader: "babel-loader" },
{
test: /\.css$/,
loader: "style-loader!css-loader"
}
]
},
externals: {
react: "react"
}
};