Skip to content

Instantly share code, notes, and snippets.

@zaidaldabbagh
Last active November 13, 2018 20:32
Show Gist options
  • Save zaidaldabbagh/9a0a858e9f12d56080e9cd662dac078b to your computer and use it in GitHub Desktop.
Save zaidaldabbagh/9a0a858e9f12d56080e9cd662dac078b to your computer and use it in GitHub Desktop.
Example package.json for webpack setup — See zaidaldabbagh.com/blog/webpack-setup
{
"name": "mpi",
"version": "1.0.0",
"description": "Ministry for Primary Industries (MPI) website.",
"main": "index.js",
"dependencies": {
"bootstrap": "^3.1.1",
"include-media": "^1.4.9",
"infinite-scroll": "^3.0.5",
"moment": "^2.22.2",
"spinkit": "^1.2.5",
"jquery": "^3.3.1",
"resolve-url-loader": "^3.0.0"
},
"devDependencies": {
"css-loader": "^1.0.0",
"file-loader": "^2.0.0",
"mini-css-extract-plugin": "^0.4.2",
"node-sass": "^4.9.3",
"postcss-loader": "^3.0.0",
"sass-loader": "^7.1.0",
"style-loader": "^0.23.0",
"webpack": "^4.19.1",
"webpack-cli": "^3.1.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "webpack --mode development --watch",
"build": "webpack"
},
"author": "",
"license": "ISC"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment