nanoc-webpack.rb 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb4f774661ab8864e181668d80bcbcbc79bdd4b45ec746ebc29fae83828691b2
4
- data.tar.gz: 05adf92c987389b5b1e6fa418b2e83c5d5b1ac7e93c9ddfd12b300ad3421be24
3
+ metadata.gz: df4465f1a027bcab47a46e8566759337c6e7011ffe3d3027e80152acda750568
4
+ data.tar.gz: a3315918c27fd3adfa6fc91f7dc62e747b15172454e60d2018d0ca23f932adc1
5
5
  SHA512:
6
- metadata.gz: 343e55d3a8557216618eaf5c9956daa9dfc9c08c4a11d54fca4575d021e9ebcff30c11acac5e5602a676abd05e9e50a799f395b60f3b0431f925c6731d12870b
7
- data.tar.gz: abbeaf8c6c482dbe8ccab176970b032d7fecf72d04a8e2e46e3145a1b09bd6a7b5e7a6bccaec8bb62c0e14955dc65105ee324f3307e30e351d15394bc2a2846b
6
+ metadata.gz: cbe5c24b15ee54980d48629ed95ffb0616566f1d5ab56bfc37f2607dc209dffcd1dccc2b038e51fec4c7d819391869e74b4a765671d93cda2bcd4b89917e6552
7
+ data.tar.gz: 3b2c884d85875026ac1438013d9f0618c5a9d6c735386cd97c6df2c7102c1c872eb418cfbe7728fd5fcddc2d81d3f4d934a0271937cedb9ba4467b11d89a646f
data/README.md CHANGED
@@ -98,7 +98,7 @@ are available as sources.
98
98
 
99
99
  ```ruby
100
100
  # Gemfile
101
- gem "nanoc-webpack.rb", github: "0x1eef/nanoc-webpack.rb", tag: "v0.5.0"
101
+ gem "nanoc-webpack.rb", github: "0x1eef/nanoc-webpack.rb", tag: "v0.5.1"
102
102
  ```
103
103
 
104
104
  **Rubygems.org**
@@ -11,11 +11,19 @@ class Nanoc::Webpack::Filter < Nanoc::Filter
11
11
  identifier :webpack
12
12
  type :text
13
13
 
14
+ ##
15
+ # @return [Hash]
16
+ # Returns the default command-line options given
17
+ # to the webpack executable.
18
+ def self.default_options
19
+ @default_options ||= {}
20
+ end
21
+
14
22
  def run(content, options = {})
15
23
  depend_on dependable(paths: options[:depend_on], reject: options[:reject])
16
24
  .map { items[_1] }
17
25
  webpack temporary_file_for(content),
18
- args: options[:args]
26
+ args: self.class.default_options.merge(options[:args])
19
27
  end
20
28
 
21
29
  private
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Nanoc
4
4
  module Webpack
5
- VERSION = "0.5.0"
5
+ VERSION = "0.5.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nanoc-webpack.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - '0x1eef'