Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. var webpack = require("webpack");
  2. var path = require("path");
  3.  
  4. module.exports = {
  5. entry: {
  6. app: './src/app.js'
  7. },
  8. output: {
  9. filename: 'public/build/bundle.js',
  10. sourceMapFilename: 'public/build/bundle.map'
  11. },
  12. devtool: '#source-map',
  13. module: {
  14. loaders: [
  15. { test: /\.jsx?$/,
  16. exclude: /(node_modules)/,
  17. loader: 'babel',
  18. query: {
  19. presets: ['stage-0','react','es2015'],
  20. plugins: ["transform-class-properties","transform-decorators-legacy"]
  21. }
  22. }
  23. ]
  24. }
  25. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement