react-progress-timer
Version:
This react component will automatically calculate the time to complete a progress bar by percentage changing speed.
35 lines (31 loc) • 633 B
JavaScript
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
module.exports = {
entry: "./example/src/index",
output: {
path: path.join(__dirname, "/dist"),
filename: "bundle.js"
},
resolve: {
extensions: [".ts", ".tsx", ".js"]
},
module: {
rules: [
{
test: /\.(ts|tsx)$/,
exclude: /node_modules/,
use: {
loader: "babel-loader",
options: {
presets: ["@babel/preset-env"]
}
}
}
]
},
plugins: [
new HtmlWebpackPlugin({
template: "./example/public/index.html"
})
]
};