react-notistack
Version:
A beautiful standalone snackbar for react
40 lines (39 loc) • 986 B
JavaScript
const path = require('path');
const HtmlWebpackPlugin = require("html-webpack-plugin");
const htmlWebpackPlugin = new HtmlWebpackPlugin({
template: path.join(__dirname, "./example/src/index.html"),
filename: "./index.html"
});
module.exports = {
entry: path.join(__dirname, "./example/src/app.js"),
output: {
path: path.join(__dirname, "example/dist"),
filename: "bundle.js"
},
module: {
rules: [
{
test: /\.(js|jsx)$/,
use: "babel-loader",
exclude: /node_modules/
},
{
test: /\.s[ac]ss$/i,
use: [
"style-loader",
"css-loader",
"sass-loader"
],
},
],
},
plugins: [
htmlWebpackPlugin
],
resolve: {
extensions: [".js", ".jsx", ".scss", ".css"]
},
devServer: {
port: 3001
}
};