Created
October 13, 2018 18:58
-
-
Save dance2die/ce43a01f962ef07c7ad89a19d92428e5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "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