Advertisement
Guest User

Untitled

a guest
Jan 24th, 2016
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. exports.config = {
  2.   // See http://brunch.io/#documentation for docs.
  3.   files: {
  4.     javascripts: {
  5.       joinTo: {
  6.         "js/app.js": /^(web\/static\/js)/,
  7.         "js/vendor.js": /^(web\/static\/vendor\/js)|(deps)/
  8.       },
  9.       order: {
  10.         before: [        
  11.           'web/static/vendor/js/lodash.js',
  12.           'web/static/vendor/js/angular.js',
  13.           'web/static/vendor/js/angular-route.js',
  14.           'web/static/vendor/js/angular-animate.js',
  15.           'web/static/vendor/js/jquery.js',
  16.           'web/static/vendor/js/bootstrap.js',
  17.           'web/static/js/main.js',
  18.           'web/static/js/clock_controller.js'
  19.         ]
  20.       }
  21.     },
  22.     stylesheets: {
  23.       joinTo: {
  24.         "css/app.css": /(web\/static\/css)/,
  25.         'css/vendor.css': /(web\/static\/vendor\/css)/,
  26.       },
  27.     },
  28.     // templates: {
  29.     //   joinTo: "js/app.js"
  30.     // }
  31.   },
  32.  
  33.   conventions: {
  34.     // This option sets where we should place non-css and non-js assets in.
  35.     // By default, we set this to "/web/static/assets". Files in this directory
  36.     // will be copied to `paths.public`, which is "priv/static" by default.
  37.     assets: /^(web\/static\/assets)/
  38.   },
  39.  
  40.   // Phoenix paths configuration
  41.   paths: {
  42.     // Dependencies and current project directories to watch
  43.     watched: [
  44.       "web/static",
  45.       "test/static"
  46.     ],
  47.  
  48.     // Where to compile files to
  49.     public: "priv/static"
  50.   },
  51.  
  52.   // Configure your plugins
  53.   plugins: {
  54.     babel: {
  55.       // Do not use ES6 compiler in vendor code
  56.  
  57.        ignore: [/web\/static\/vendor/]
  58.     }
  59.   },
  60.  
  61.   modules: {
  62.     definition: false,
  63.     wrapper: false ,
  64.      autoRequire: {
  65.       "js/app.js": ["web/static/js/app"]
  66.     }
  67.   },
  68.  
  69.   npm: {
  70.     enabled: true,
  71.      whitelist: ["phoenix", "phoenix_html"]
  72.   }
  73. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement