Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. // configuration. Pass in your the path to your own file or it defaults to a default one
  2. config = {
  3. entry: default_entries,
  4. performance:{
  5. hints:false
  6. },
  7. output:{
  8. path:OUTPUT,
  9. filename:"app.js",
  10. publicPath:"/"
  11. },
  12. module:{
  13. loaders:[
  14. {
  15. test:/\.js$/,
  16. exclude:/node_modules/,
  17. loaders:[
  18. __dirname + '/node_modules/babel-loader'
  19. ]
  20. }
  21. ]
  22. },
  23. plugins: [
  24. new webpack.HotModuleReplacementPlugin(),
  25. new webpack.NamedModulesPlugin()
  26. ]
  27. }
  28.  
  29. /// SERVER
  30.  
  31.  
  32. var server = new WebpackServer(compiler,{
  33. hot:HOTLOAD,
  34. noInfo:true,
  35. contentBase:path.resolve(`${__dirname}/../`,DIST),
  36. publicPath:"/",
  37. stats:{
  38. errors:true,
  39. hash:false,
  40. version:false,
  41. assets:false,
  42. timings:false,
  43. chunks:false
  44. }
  45. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement