brunch-config.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. exports.config = {
  2. // See http://brunch.io/#documentation for docs.
  3. files: {
  4. javascripts: {
  5. joinTo: "js/app.js"
  6. // To use a separate vendor.js bundle, specify two files path
  7. // http://brunch.io/docs/config#-files-
  8. // joinTo: {
  9. // "js/app.js": /^js/,
  10. // "js/vendor.js": /^(?!js)/
  11. // }
  12. //
  13. // To change the order of concatenation of files, explicitly mention here
  14. // order: {
  15. // before: [
  16. // "vendor/js/jquery-2.1.1.js",
  17. // "vendor/js/bootstrap.min.js"
  18. // ]
  19. // }
  20. },
  21. stylesheets: {
  22. joinTo: "css/app.css"
  23. },
  24. templates: {
  25. joinTo: "js/app.js"
  26. }
  27. },
  28. conventions: {
  29. // This option sets where we should place non-css and non-js assets in.
  30. // By default, we set this to "/assets/static". Files in this directory
  31. // will be copied to `paths.public`, which is "priv/static" by default.
  32. assets: /^(static)/
  33. },
  34. // Phoenix paths configuration
  35. paths: {
  36. // Dependencies and current project directories to watch
  37. watched: ["static", "css", "js", "vendor"],
  38. // Where to compile files to
  39. public: "../priv/static"
  40. },
  41. // Configure your plugins
  42. plugins: {
  43. babel: {
  44. // Do not use ES6 compiler in vendor code
  45. ignore: [/vendor/]
  46. }
  47. },
  48. modules: {
  49. autoRequire: {
  50. "js/app.js": ["js/app"]
  51. }
  52. },
  53. npm: {
  54. enabled: true
  55. }
  56. };