Extract html templates in js-tree using brunch compiler

I have an AngularJS project that I recently switched to brunch, where all the templates are stored in the side of the javascript tree.

Example:

js/ -- main/ ----main.js ----main.html --sub/ ----sub,js ----sub.html 

I was not able to figure out how to configure Brunch.io to extract html files from js tree and publish them under shared /

As a workaround, I copied the js tree in the assets and deleted all the js files.

I would like to save templates with js files if possible.

+4
source share
1 answer

Put the material in the assets directory, for example. app/assets - it will just be copied to public

https://github.com/brunch/brunch/tree/stable/docs#basics

+2
source

Source: https://habr.com/ru/post/1498041/


All Articles