I am building an angular page in Middleman and it works just fine if the app.js and the controllers.js file is not minified during the build. Is there a way to designate files to be ignored and not minified?
Thank you.
I am building an angular page in Middleman and it works just fine if the app.js and the controllers.js file is not minified during the build. Is there a way to designate files to be ignored and not minified?
Thank you.
Hi @studiorooster, can you try something like this
activate :minify_css, :ignore => [/regex_pattern/]
activate :minify_javascript, :ignore => [/regex_pattern/]
Where regex_pattern would be your filename(s). I’ve needed to do that but I do use the ignore my font path for asset_hash e.g.
activate :asset_hash, :ignore => [/^fonts/]
I would recommend fixing the application than a bypass on the Middleman side. Change the way that dependency injections are passed. Look at A Note on Minification in the AngularJS tutorial for an example: https://docs.angularjs.org/tutorial/step_05