Skip to content

Instantly share code, notes, and snippets.

@agzuniverse
Created October 1, 2019 16:48
Show Gist options
  • Save agzuniverse/d6eb344a03d17cfd9cfeef216b3caa65 to your computer and use it in GitHub Desktop.
Save agzuniverse/d6eb344a03d17cfd9cfeef216b3caa65 to your computer and use it in GitHub Desktop.
const path = require('path')
module.exports = {
"entry": "./src/index.js",
"output": {
path: path.resolve(__dirname, 'dist'),
filename: "bundle.js"
},
module: {
rules: [
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: "babel-loader"
},
{
test: /\css$/,
use: [
{
loader: "style-loader"
},
{
loader: "css-loader"
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment