Created
October 6, 2018 01:25
-
-
Save jogeshpi03/f3129e3830bc9c345e2c4f83f236082d to your computer and use it in GitHub Desktop.
This file contains 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
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