Upgrade to nanoc-webpack.rb v0.1.5

This commit is contained in:
0x1eef 2023-01-08 05:10:04 -03:00 committed by Robert
parent a5e69e6c23
commit 2c81c044f6
2 changed files with 3 additions and 7 deletions

View file

@ -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"

8
Rules
View file

@ -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