From 3dd888ceffbe5c87ea601b4f61fc2b706c1022f5 Mon Sep 17 00:00:00 2001 From: Tunghsiao Liu Date: Tue, 2 Feb 2016 15:44:38 +0800 Subject: [PATCH] fix(grunt): update config for new version BREAKING CHANGE: Now it will no longer bust favicons and other assets outside the `<%= amsf.user.assets %>`. --- Gruntfile.coffee | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 8dbb8b6a5..30bf2c9dc 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -267,25 +267,18 @@ module.exports = (grunt) -> cacheBust: options: - encoding: "utf8" - filters: { - "link[rel*=icon]": -> - @attribs.href - } - ignorePatterns: [ - "no-cache-bust" - ] algorithm: "md5" - length: 8 + assets: ["<%= amsf.user.assets %>/**/*"] + baseDir: "<%= config.dist %>" deleteOriginals: true + encoding: "utf8" + length: 8 dist: files: [ expand: true - baseDir: "<%= config.dist %>" cwd: "<%= config.dist %>" src: "**/*.html" - dest: "<%= config.dist %>" ] usebanner: