Skip to content

Instantly share code, notes, and snippets.

@Sapphiron532
Forked from joaocarvalhowd/package.json
Created October 29, 2016 09:00
Show Gist options
  • Save Sapphiron532/7de99f1f94134cc0b3fca2675d64360f to your computer and use it in GitHub Desktop.
Save Sapphiron532/7de99f1f94134cc0b3fca2675d64360f 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