Skip to content

Instantly share code, notes, and snippets.

@geoffmiller
Created December 10, 2017 14:09
Show Gist options
  • Save geoffmiller/b8543f996e02fa49c475c05409653b9c to your computer and use it in GitHub Desktop.
Save geoffmiller/b8543f996e02fa49c475c05409653b9c to your computer and use it in GitHub Desktop.
pacakge.json for Webpack 3, dynamic imports, code splitting, and long term caching (with React).
{
"name": "webpack-cs-ltc",
"version": "1.0.0",
"description": "A simple boilerplate for Webpack 3, dynamic imports, code splitting, and long term caching.",
"main": "index.js",
"scripts": {
"start": "webpack --config webpack.config.js",
"dev-server": "webpack-dev-server",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Geoff Miller",
"license": "MIT",
"dependencies": {
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-loadable": "^5.3.1",
"react-router-dom": "^4.2.2"
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"html-webpack-plugin": "^2.30.1",
"webpack": "^3.10.0",
"webpack-dev-server": "^2.9.7"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment