Skip to content

Instantly share code, notes, and snippets.

@AlexanderBollbach
Created August 23, 2018 13:00
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 AlexanderBollbach/fb81fef45ef6e92a133425475c430e2b to your computer and use it in GitHub Desktop.
Save AlexanderBollbach/fb81fef45ef6e92a133425475c430e2b to your computer and use it in GitHub Desktop.
{
presets: ["env", "react"]
}
{
"name": "pokemon",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "webpack"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"react": "^16.4.2",
"react-dom": "^16.4.2",
"webpack": "^4.17.1"
},
"devDependencies": {
"@babel/preset-env": "^7.0.0-rc.2",
"webpack-cli": "^3.1.0"
}
}
const path = require("path");
module.exports = {
output: {
path: __dirname + "/dist",
filename: "bundle.js"
},
entry: "./src/index.js",
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
query: require("./babel.rc"),
loader: "babel-loader"
}
]
},
mode: "development"
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment