Skip to content

Instantly share code, notes, and snippets.

@iahu
Created November 29, 2016 14:41
Show Gist options
  • Save iahu/113af9a997ed1d7eb7d87ab05324dd95 to your computer and use it in GitHub Desktop.
Save iahu/113af9a997ed1d7eb7d87ab05324dd95 to your computer and use it in GitHub Desktop.
react webpack config file, witch babel and sass
{
"name": "webpack-demo",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "webpack",
"dev": "webpack-dev-server --devtool eval --progress --colors --hot --content-base build",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"babel-core": "^6.18.2",
"babel-loader": "^6.2.8",
"babel-preset-es2015": "^6.18.0",
"babel-preset-react": "^6.16.0",
"css-loader": "^0.26.0",
"sass-loader": "^4.0.2",
"style-loader": "^0.13.1",
"webpack": "^1.13.3",
"webpack-dev-server": "^1.16.2"
},
"dependencies": {
"react": "^15.4.1",
"react-dom": "^15.4.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment