Skip to content

Instantly share code, notes, and snippets.

@jogeshpi03
Created October 6, 2018 01:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jogeshpi03/f3129e3830bc9c345e2c4f83f236082d to your computer and use it in GitHub Desktop.
Save jogeshpi03/f3129e3830bc9c345e2c4f83f236082d to your computer and use it in GitHub Desktop.
const path = require("path");
module.exports = {
entry: "./src/index.js",
output: {
path: path.join(__dirname, "/dist"),
filename: "index_bundle.js"
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: "babel-loader"
},
},
{
test: /\.css$/,
use: ["style-loader", "css-loader"]
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment