diff options
| author | Eliot Whalan <ewhal@pantsu.cat> | 2015-09-22 13:11:25 +0200 |
|---|---|---|
| committer | Eliot Whalan <ewhal@pantsu.cat> | 2015-09-23 02:48:55 +0200 |
| commit | 4cd942880fd72f6564c5f65a7ce0c53f0235be19 (patch) | |
| tree | 788f6d8ac0d8104250a4916a25bc06f05882e292 /Gruntfile.js | |
| parent | 5f5c5825d0e7becfb7d222b94169dbbee46d5f37 (diff) | |
Update Gruntfile to work with updated dependencies
Diffstat (limited to 'Gruntfile.js')
| -rw-r--r-- | Gruntfile.js | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index c0249cb..b85ca40 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -4,23 +4,20 @@ module.exports = function (grunt) { swig: { dist: { init: { - root: "pages/", - allowErrors: false, - autoescape: true + allowErrors: false }, banners: grunt.file.readJSON('pages/banners.json'), max_upload_size: 120, - dest: "dist/", - cwd: "pages/", + dest: 'dist', generateSitemap: false, generateRobotstxt: false, src: [ - 'index.swig', - 'faq.swig', - 'tools.swig', - 'other.swig', - 'nojs.swig', - 'ca.swig' + 'pages/index.swig', + 'pages/faq.swig', + 'pages/tools.swig', + 'pages/other.swig', + 'pages/nojs.swig', + 'pages/ca.swig' ], siteUrl: 'https://pantsu.cat/', production: false, @@ -31,13 +28,12 @@ module.exports = function (grunt) { options: { removeComments: true, collapseWhitespace: true, - conservativeCollapse: true, removeEmptyAttributes: true }, files: [{ expand: true, cwd: 'dist/', - src: '**/*.html', + src: '*.html', dest: 'dist/' }] } |
