Created
August 23, 2018 13:00
-
-
Save AlexanderBollbach/fb81fef45ef6e92a133425475c430e2b 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
{ | |
presets: ["env", "react"] | |
} |
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
{ | |
"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" | |
} | |
} |
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 = { | |
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