Answers
我想最简单的作法就是加一个 grunt-contrib-concat task把它们都append到file end去
grunt.initConfig({
concat: {
options: {
separator: ';',
},
dist: {
src: [
'scripts/scripts.js',
'scripts/controllers/lib/jquery-2.1.3.min.js',
'scripts/controllers/lib/swiper.jquery.min.js',
'scripts/controllers/lib/animo.js',
],
dest: 'dist/scripts/scripts.js',
},
},
});
asdc110
answered 9 years, 2 months ago