./install.sh
Last active
September 17, 2016 09:44
-
-
Save rybarix/794a862b88d61c4b435542e7e698fc78 to your computer and use it in GitHub Desktop.
starting react-redux project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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