Skip to content

Instantly share code, notes, and snippets.

@rybarix
Last active September 17, 2016 09:44
Show Gist options
  • Save rybarix/794a862b88d61c4b435542e7e698fc78 to your computer and use it in GitHub Desktop.
Save rybarix/794a862b88d61c4b435542e7e698fc78 to your computer and use it in GitHub Desktop.
starting react-redux project
npm init
npm install webpack --save-dev
npm install webpack-dev-server
npm install babel-loader babel-core babel-preset-es2015 --save-dev
npm install --save react-redux
npm install --save-dev redux-devtools
var path = require("path");
module.exports = {
entry: {
app: ["./app/main.js"]
},
output: {
path: path.resolve(__dirname, "build"),
publicPath: "/assets/",
filename: "bundle.js"
}
module: {
loaders: [
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel',
query: {
presets: ['es2015']
}
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment