Here is my require.js configuration for the optimizer.
({
appDir: 'app/'
, baseUrl: 'js'
, mainConfigFile: 'app/js/main.js'
, dir: 'build/'
, modules: [{ name: 'main' }]
})
I have a folder in my project that contains third party dependencies called bower_components
When I run the require.js optimizer it iterates though every .css and .js file in these third party dependencies and uglifies them. The trouble is that I am already referring to the correct *.min.js file in my code. This takes a long time and I want to exclude the entire folder form uglification, however, I still want to to combine the third party dependencies into a single file where appropriate.
How can I achieve this?