You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to collect all the javascript file references (paths) from all html files [src].
Is there a way to achieve this? Currently, the writeto variable jsRefs is getting overwritten and I am not sure how to get around this.
grunt.initConfig({dom_munger: {your_target: {options: {read: {selector: 'script',attribute: 'src',// Is there a way to instruct jsRefs to be// a multi-dimensional array or object.key// combination per source file holding// the jsRefs Arrays?writeto: 'jsRefs',// <-isPath: true}},// Going through multiple html files, collecting javascript referencessrc: ['html/*.html']},},log: {}});grunt.registerTask("log",function(){varjsFiles=grunt.config.process('<%= dom_munger.data.jsRefs %>');// only last processed file with array of pathsconsole.dir(jsFiles);});
The text was updated successfully, but these errors were encountered:
I want to collect all the javascript file references (paths) from all html files [src].
Is there a way to achieve this? Currently, the writeto variable jsRefs is getting overwritten and I am not sure how to get around this.
The text was updated successfully, but these errors were encountered: