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