Closed carsonip closed 8 years ago
@carsonip Under what version of brunch is compile()
not called?
@tolyo I am using brunch 2.8.2
which is the latest version.
@carsonip I ll take a look at it
@carsonip warn: html-pages-brunch does not declare target extension for static files, skipping. This is a breaking change
@tolyo Did you add the two lines?
HtmlPages.prototype.extension = 'html';
HtmlPages.prototype.staticTargetExtension = 'html';
@carsonip I see that now. It now works but it works only for the assets
folder, which I don't believe any other plugins optimize for. assets
exist just to be copied. I could add it as an option but as far as the plugin is concerned, it is meant for .html
outside of assets folder.
@tolyo You are right. It turns out that my html are static and they are in the assets folder that's probably why the compile()
didn't work for me. Assets should be html minified though.
@carsonip I'll make the necessary changes for your use-case. Hold tight
@tolyo Sorry that I overlooked the case. This is great, thanks!
@carsonip Done. Update to 2.3.0
The
compile()
function is not called. UsecompileStatic()
instead. Related tests are modified.