From 2c81c044f6c0a63a7683e4c1f27145f678dbc6d8 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sun, 8 Jan 2023 05:10:04 -0300 Subject: [PATCH] Upgrade to nanoc-webpack.rb v0.1.5 --- Gemfile | 2 +- Rules | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Gemfile b/Gemfile index a0c0598..5513edc 100644 --- a/Gemfile +++ b/Gemfile @@ -14,7 +14,7 @@ gem "puma", "~> 6.0" ## # nanoc filters gem "nanoc-gunzip.rb", github: "0x1eef/nanoc-gunzip.rb", tag: "v0.1.2" -gem "nanoc-webpack.rb", github: "0x1eef/nanoc-webpack.rb", tag: "v0.1.3" +gem "nanoc-webpack.rb", github: "0x1eef/nanoc-webpack.rb", tag: "v0.1.5" gem "rainpress", "~> 1.0" gem "sass", "~> 3.7" diff --git a/Rules b/Rules index 2d4da4e..254fcba 100644 --- a/Rules +++ b/Rules @@ -55,18 +55,14 @@ end ## # /js/pages/surah.js compile "/js/pages/TheSurahPage.tsx" do - filter :webpack, depend_on: [ - "/js/components/*.{ts,tsx}", - "/js/lib/*.ts", - "/js/{lib,components,hooks}/[!WebPackage]**/*.{ts,tsx,js}" - ] + filter :webpack, depend_on: ["/js/components", "/js/lib/[!WebPackage]/", "/js/hooks"] write "/js/pages/surah.js" filter :gzip_text write "/js/pages/surah.js.gz" end compile "/js/pages/TheSurahPage/package.ts" do - filter :webpack, depend_on: "/js/lib/WebPackage/*.ts" + filter :webpack, depend_on: "/js/lib/WebPackage" write "/js/pages/TheSurahPage/package.js" end