These are chat archives for brunch/brunch

14th
Mar 2017
Neya
@dsignr
Mar 14 2017 02:37
Hi @DoumanAsh, but, output meaning it is supposed to output the files, right? That’s not happening for me..
Douman
@DoumanAsh
Mar 14 2017 05:26
i actually never used it myself but from what i understand since it is supplement to 'entryPoints' i assume it should go to bundle. Try to check out your JS bundle without minifications for this 'output'
Neya
@dsignr
Mar 14 2017 06:45

Hmmm, I already checked config, sample repos, etc. none have documented what they do clearly. I tried removing node_modules and re-installing, still couldn’t see anything.

So, for it to be bundled, is there anything additional required? I can actually share you my config here.

# See http://brunch.io for documentation.
module.exports =

  files:
    javascripts:
      # entryPoints:
      #   'web/static/js/application.js': {
      #     "js/application.js": /web\/static\/js\/pages/,
      #     "js/vendor.js": /web\/static\/js\/vendor/
      #   }
      joinTo:
        'js/application.js': /^web\/static\/js\/application/
        'js/vendor.js': /^(web\/static\/js\/vendor)|(deps)|(?!web\/static\/js\/vendor)/
        'js/crud.js': /^web\/static\/js\/crud/
        'js/socket.js': /^web\/static\/js\/socket/
        'js/initialize.js': /^web\/static\/initialize/
      #   'js/crud.js': [/^app\/js\/pages/]
      order:
        before: ['web/static/js/vendor/jquery-*.min.js', 'web/static/js/vendor/vue.js']
    templates:
      joinTo: 'js/application.js'
    stylesheets:
      joinTo:
        '/css/application.css': [
                                  /web\/static\/css\/vendor/,
                                  /web\/static\/css\/application/
                                ]
        '/css/pages.css':  [
                              /web\/static\/css\/vendor/,
                              /web\/static\/css\/pages/
                           ]
      order:
        before: [
          /web\/static\/css\/vendor\/uikit*/
        ]

  paths:
    public: 'priv/static'
    watched: ['web/static', 'web/static/js', 'test/static']

  conventions:
    # This option sets where we should place non-css and non-js (images, fonts) assets in.
    # By default, we set this to "/web/static/assets". Files in this directory
    # will be copied to `paths.public`, which is "priv/static" by default.
    assets: /^(web\/static\/assets)/

  npm: enabled: true

  modules:
    autoRequire:
      "js/application.js": ["web/static/js/application"]

  plugins:
    babel:
      # Do not use ES6 compiler in vendor code
      ignore: [/web\/static\/js\/vendor/]
Neya
@dsignr
Mar 14 2017 07:22
.
Douman
@DoumanAsh
Mar 14 2017 09:30
umm... what is a problem with your current config? Note i actually never felt a need for entryPoints so i cannot be sure how exactly it works. But i'm not sure what exactly you want to achieve with your commented entryPoints. you want web/static/js/application.js to produce two bundles?