Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
"use strict";
var path = require("path");
var WebpackNotifierPlugin = require("webpack-notifier");
var BrowserSyncPlugin = require("browser-sync-webpack-plugin");
module.exports = {
entry: "./Scripts/Home/react/index.js",
output: {
path: path.resolve(__dirname, "./Scripts/dist/Home/react"),
filename: "bundle.js"
module: {
rules: [
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: "babel-loader"
devtool: "inline-source-map",
plugins: [new WebpackNotifierPlugin(), new BrowserSyncPlugin()]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment