grunt-playlist/Gruntfile.js

52 lines
1.3 KiB
JavaScript
Raw Normal View History

module.exports = function(grunt){
const sass = require('node-sass');
// require('load-grunt-tasks')(grunt);
// Configuration
grunt.initConfig({
// pass in options to plugin, references to file, etc.
concat: {
js: {
src: ['js/*.js'],
dest: 'build/scripts.js'
},
css: {
src: ['css/reset.css', 'css/bootstrap.css', 'css/styles.css'],
dest: 'build/styles.js'
}
},
sass: {
options: {
implementation: sass,
sourceMap: true
},
dist: {
files: {
'css/sass/styles.scss': 'css/styles.css'
}
}
2021-03-23 12:17:53 +11:00
},
uglify: {
build: {
files: [{
src: 'build/scripts.js',
dest: 'build/scripts.js'
}]
}
}
});
// Load plugins
grunt.loadNpmTasks('grunt-contrib-concat')
grunt.loadNpmTasks('grunt-sass');
2021-03-23 12:17:53 +11:00
grunt.loadNpmTasks('grunt-contrib-uglify');
// Register tasks
grunt.registerTask('concat-js', ['concat:js']);
grunt.registerTask('concat-css', ['concat:css']);
}