Skip to content

Instantly share code, notes, and snippets.

@NSLog0
Created May 19, 2016 06:04
Show Gist options
  • Save NSLog0/832999d9254667229e5798a495b54210 to your computer and use it in GitHub Desktop.
Save NSLog0/832999d9254667229e5798a495b54210 to your computer and use it in GitHub Desktop.
Turorial for React and Spring Boot
var path = require("path");
module.exports = {
devtool: 'source-map',
entry: './index.js',
output: {
path: path.resolve(__dirname, "build"),
publicPath: "/",
filename: "bundle.js"
},
module: {
loaders: [{
test: /\.jsx?$/,
exclude: /(node_modules)/,
loader: 'babel-loader'
}]
},
resolve: {
extensions: ['', '.js', '.jsx']
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment