-
-
Save ankur1163/3953967c3417c7b1d49d6769ccd97b88 to your computer and use it in GitHub Desktop.
first
This file contains hidden or 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 webpack = require("webpack"); | |
var path = require("path"); | |
module.exports = { | |
entry: { | |
app: './src/app.js' | |
}, | |
output: { | |
filename: 'public/build/bundle.js', | |
sourceMapFilename: 'public/build/bundle.map' | |
}, | |
devtool: '#source-map', | |
module: { | |
loaders: [ | |
{ test: /\.jsx?$/, | |
exclude: /(node_modules)/, | |
loader: 'babel', | |
query: { | |
presets: ['stage-0','react','es2015'], | |
plugins: ["transform-class-properties","transform-decorators-legacy"] | |
} | |
} | |
] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment