From 4cd942880fd72f6564c5f65a7ce0c53f0235be19 Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Tue, 22 Sep 2015 21:11:25 +1000 Subject: Update Gruntfile to work with updated dependencies --- Gruntfile.js | 22 +++++++++------------- 1 file 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/' }] } -- cgit v1.2.3