We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20db6ce commit 99adc67Copy full SHA for 99adc67
Gruntfile.js
@@ -0,0 +1,30 @@
1
+module.exports = function (grunt)
2
+{
3
+ 'use strict';
4
+
5
+ // Load all Grunt tasks.
6
+ require('load-grunt-tasks')(grunt);
7
8
+ grunt.initConfig({
9
+ pkg: grunt.file.readJSON('package.json'),
10
11
+ // Uglify and copy JavaScript files from `node_modules` and from `src/` to `assets/js/`.
12
+ uglify: {
13
+ dist: {
14
+ files: [
15
+ {
16
+ 'assets/js/search.js': [
17
+ 'node_modules/jquery/dist/jquery.js',
18
+ 'node_modules/lunr/lunr.js',
19
+ 'src/search.js'
20
+ ]
21
+ }
22
23
24
25
26
+ });
27
28
+ // Register tasks.
29
+ grunt.registerTask('build', ['uglify']);
30
+};
0 commit comments