Skip to content

Instantly share code, notes, and snippets.

@joaocarvalhowd
Created July 10, 2016 18:57
Show Gist options
  • Save joaocarvalhowd/7bd28a753f97fd8a76cab9326dd38002 to your computer and use it in GitHub Desktop.
Save joaocarvalhowd/7bd28a753f97fd8a76cab9326dd38002 to your computer and use it in GitHub Desktop.
React
{
"name": "react-estudo",
"version": "1.0.0",
"description": "",
"main": "webpack.config.js",
"dependencies": {
"mappersmith": "^0.13.3",
"react": "^15.2.1",
"react-dom": "^15.2.1",
"react-remarkable": "^1.1.1"
},
"devDependencies": {
"babel-core": "^6.10.4",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.9.0",
"babel-preset-react": "^6.11.1",
"webpack": "^1.13.1",
"webpack-dev-server": "^1.14.1"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
module.exports = {
entry: './src/js/App.js',
output: {
path: './public/js/',
filename: 'bundle.js'
},
module: {
loaders: [{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel',
query: {
presets: ['es2015', 'react']
}
}]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment