StealLikeADev

create-react-app

All right! First one on our list: create-react-app. Let's write the webpack configs & service worker from scratch, and then bundle everything together into a CLI.

package.json
{
    "name": "1__cra",
    "version": "0.1.0",
    "scripts": {},
    "dependencies": {
        "react": "^16.8.6",
        "react-dom": "^16.8.6"
    },
    "devDependencies": {
        "@babel/core": "^7.8.0",
        "@babel/preset-env": "^7.8.0",
        "@babel/preset-react": "^7.8.0",
        "autoprefixer": "^9.7.3",
        "babel-loader": "^8.0.6",
        "copy-webpack-plugin": "^5.1.1",
        "css-loader": "^2.1.1",
        "file-loader": "^3.0.1",
        "html-webpack-plugin": "^3.2.0",
        "mini-css-extract-plugin": "^0.6.0",
        "optimize-css-assets-webpack-plugin": "^5.0.3",
        "postcss-loader": "^3.0.0",
        "resources-manifest-webpack-plugin": "^3.0.0",
        "serve": "^11.3.0",
        "style-loader": "^0.23.1",
        "terser-webpack-plugin": "^2.3.4",
        "webpack": "^4.41.5",
        "webpack-cli": "^3.3.10",
        "webpack-dev-server": "^3.10.1",
        "webpack-merge": "^4.2.2"
    },
    "browserslist": {
        "production": [
            ">0.2%",
            "not dead",
            "not op_mini all"
        ],
        "development": [
            "last 1 chrome version",
            "last 1 firefox version",
            "last 1 safari version"
        ]
    }
}
                  
            

Comments