Skip to content

Instantly share code, notes, and snippets.

@Davisonpro
Last active February 27, 2019 12:24
Show Gist options
  • Save Davisonpro/4d84b4916b8c8d9dc88d915362363c8e to your computer and use it in GitHub Desktop.
Save Davisonpro/4d84b4916b8c8d9dc88d915362363c8e to your computer and use it in GitHub Desktop.
Our react app package.json file
{
"name": "react-php",
"version": "1.0.0",
"description": "Setting up php and react web app",
"main": "index.js",
"scripts": {
"build": "webpack --progress --env.NODE_ENV=production --mode production",
"watch": "webpack --colors --debug --display-chunk -w --env.NODE_ENV=development --mode development"
},
"dependencies": {
"@babel/plugin-proposal-class-properties": "^7.2.3",
"@babel/preset-react": "^7.0.0",
"react": "^16.7.0",
"react-async-component": "^2.0.0",
"react-dom": "^16.7.0",
"react-helmet": "^5.2.0",
"react-hot-loader": "^4.6.3",
"react-router-dom": "^4.3.1"
},
"devDependencies": {
"@babel/core": "^7.0.0-rc.1",
"@babel/plugin-proposal-decorators": "^7.2.3",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/preset-env": "^7.0.0-rc.1",
"@babel/preset-typescript": "^7.1.0",
"autoprefixer": "^9.4.4",
"babel-loader": "^8.0.0-beta.4",
"css-loader": "^2.1.0",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"file-loader": "^3.0.1",
"node-sass": "^4.11.0",
"path": "^0.12.7",
"postcss-flexibility": "^2.0.0",
"postcss-loader": "^3.0.0",
"sass-loader": "^6.0.7",
"style-loader": "^0.23.1",
"webpack": "^4.17.0",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.14"
},
"author": "I am a Pro",
"license": "ISC"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment