<code> browserify: { options: { transform: ['brfs'], debug: true }, debug: { files: {'build/test.min.js': 'src/test.js'}, } } </code>
只要加了transform: ['brfs']
,就會報錯,去掉就能正常編譯,什麼情況啊?
<code>$ grunt Running "browserify:debug" (browserify) task >> TypeError: Cannot read property 'apply' of undefined while parsing file: X:\Users\javascript\Desktop\LEARN\learn_grunt\src\test.js Warning: Error running grunt-browserify. Use --force to continue. Aborted due to warnings. </code>
<code> browserify: { options: { transform: ['brfs'], debug: true }, debug: { files: {'build/test.min.js': 'src/test.js'}, } } </code>
只要加了transform: ['brfs']
,就會報錯,去掉就能正常編譯,什麼情況啊?
<code>$ grunt Running "browserify:debug" (browserify) task >> TypeError: Cannot read property 'apply' of undefined while parsing file: X:\Users\javascript\Desktop\LEARN\learn_grunt\src\test.js Warning: Error running grunt-browserify. Use --force to continue. Aborted due to warnings. </code>