nanoc-webpack: upgrade to v0.2.0

This commit is contained in:
0x1eef 2023-03-27 12:23:20 -03:00
parent d18bcd0341
commit fabda18af5
3 changed files with 7 additions and 5 deletions

View file

@ -9,7 +9,7 @@ gem "nanoc-live", "~> 1.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.5"
gem "nanoc-webpack.rb", github: "0x1eef/nanoc-webpack.rb", tag: "v0.2.0"
gem "rainpress", "~> 1.0"
gem "sass", "~> 3.7"

View file

@ -7,10 +7,10 @@ GIT
GIT
remote: https://github.com/0x1eef/nanoc-webpack.rb.git
revision: be0f625e3e1862b7cb6f1698074a9109abb26137
tag: v0.1.5
revision: 5c0630138fa8188c37ed85d3708d59ca85d50921
tag: v0.2.0
specs:
nanoc-webpack.rb (0.1.5)
nanoc-webpack.rb (0.2.0)
GIT
remote: https://github.com/0x1eef/ryo.rb.git

View file

@ -25,7 +25,9 @@ Ryo.each(slugs) do |surah_id, slug|
end
compile "/js/pages/surah/stream.tsx" do
filter :webpack, depend_on: ["/js/components", "/js/lib/[!WebPackage]/", "/js/hooks"]
filter :webpack,
depend_on: ["/js/components", "/js/lib/", "/js/hooks"],
reject: proc { _1.include?('WebPackage') }
write "/js/pages/surah/stream.js"
filter :gzip_text
write "/js/pages/surah/stream.js.gz"