Skip to content

Instantly share code, notes, and snippets.

@yowchun93
Created June 17, 2019 01:22
Show Gist options
  • Save yowchun93/5e006f4489e40e88f9958920cd813028 to your computer and use it in GitHub Desktop.
Save yowchun93/5e006f4489e40e88f9958920cd813028 to your computer and use it in GitHub Desktop.
Rebuilding Github Battle
Github Battle v2
Step 1
// Setting up package.json, this is done through npm install
Step 2
// I guess the next step, is to get something to run?!! app.js? index.js?
// npm install --save-dev @babel/core @babel/preset-env @babel/preset-react webpack webpack-cli webpack-dev-server babel-loader css-loader style-loader html-webpack-plugin
Step 3
// Install Babel , webpack, webpack-dev-server, css loader, style loader
// Add webpack.config file
// HtmlWebpackPlugin , template: 'app/index.html'
Step 4
// create index.html, index.js files
Could not get the file to load, apparently something is wrong with my package.json file
// checking the difference in package.json, it seems like i am missing "babel", in my package.json file.
// what i did was copying the whole package.json file, and run npm install. It works.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment