@@ -16,7 +16,14 @@ const pngquant = require('imagemin-pngquant');
16
16
17
17
module . exports = function ( grunt ) {
18
18
require ( 'time-grunt' ) ( grunt ) ;
19
- require ( 'load-grunt-tasks' ) ( grunt ) ;
19
+ require ( 'load-grunt-tasks' ) ( grunt , {
20
+ pattern : [
21
+ 'grunt-*' ,
22
+ '@*/grunt-*' ,
23
+ '!grunt-assemble-permalinks' ,
24
+ '!grunt-assemble-i18n'
25
+ ]
26
+ } ) ;
20
27
21
28
// Project configuration. actual tasks
22
29
grunt . initConfig ( {
@@ -37,10 +44,7 @@ module.exports = function(grunt) {
37
44
} ,
38
45
css : {
39
46
files : '<%= config.src %>/assets/css/*.css' ,
40
- tasks : [
41
- 'concat:dist' ,
42
- 'postcss'
43
- ]
47
+ tasks : [ 'concat:dist' , 'postcss' ]
44
48
} ,
45
49
imagemin : {
46
50
files : '<%= config.src %>/assets/img/*.{png,jpg,jpeg,gif,svg,ico}' ,
@@ -73,9 +77,7 @@ module.exports = function(grunt) {
73
77
livereload : {
74
78
options : {
75
79
open : true ,
76
- base : [
77
- '<%= config.dist %>'
78
- ]
80
+ base : [ '<%= config.dist %>' ]
79
81
}
80
82
}
81
83
} ,
@@ -94,19 +96,16 @@ module.exports = function(grunt) {
94
96
'!<%= config.src %>/data/reference/*.json'
95
97
] ,
96
98
partials : '<%= config.src %>/templates/partials/*.hbs' ,
97
- plugins : [
98
- 'assemble-contrib-permalinks' ,
99
- 'assemble-contrib-i18n'
100
- ] ,
99
+ plugins : [ 'grunt-assemble-permalinks' , 'grunt-assemble-i18n' ] ,
101
100
i18n : {
102
101
languages : pkg . languages ,
103
- templates : [
104
- '<%= config.src %>/templates/pages/**/*.hbs' ,
105
- ]
102
+ templates : [ '<%= config.src %>/templates/pages/**/*.hbs' ]
106
103
} ,
107
104
permalinks : {
108
105
structure : ':lang/:slug/:base:ext' ,
109
- patterns : [
106
+ // Official documentation incorrectly states that this property
107
+ // should be "patterns" when it should be "replacements"
108
+ replacements : [
110
109
{
111
110
pattern : ':lang' ,
112
111
replacement : function ( ) {
0 commit comments