Brunch config file conventions -


according brunch documentation property "conventions.assets" in config file should regexp, i'm trying include following:

conventions: {     assets: /^app\/.*\.html/ } 

in order add htmls public folder. (i know can create assets folder , include things there, it's not possible moment according structure we've agreed).

i think property expect directory, in case fix value in order reach goal?, function maybe?

finally overriding method property "assets" accepts.

assets: function(path) {     /**      * loops every path , returns path|true|false according need      * @param   path    file or directory's path      * @returns path    if directory      *          true    if fit regular expression      *          false   otherwise      *      */     if( /\/$/.test(path) ) return path;     return /^app\/.*\.html/.test(path); // regexp need } 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -