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
Post a Comment