webpack_rails 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/webpack_rails/engine.rb +9 -3
  3. metadata +4 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ddb9eeee4bbff9584582e6b7c92e4a654e2a9af8
4
- data.tar.gz: f12e3aceb14f4a508f49fef60caca7b2e54f8ba7
3
+ metadata.gz: 29694b6e70b03062a5f5f2cd1a8444fabab5f0ff
4
+ data.tar.gz: ac283108725a013585aae7827f1dd446eb8947df
5
5
  SHA512:
6
- metadata.gz: 4b93a1aa955ebe77fa38091d5c6b895d4cca14a287ee941a4ac540ce9633099f53376be84cdff4b14576b07d6294bac3e4b95742f9b6a57c15988d78022b9248
7
- data.tar.gz: c9bf05d74228ddcac831458a5b1166c44dd7dfdd08a9656c925b22742c3ceee85bd91a922f4d33abe22d7edd02ac0249d9307d76a019e7a2216169622917e5a0
6
+ metadata.gz: 3e83af911bc302106d81a05113ecaf36732d43bf64131583e87a2112db609632428a6ae7070b44916e91f6369b9b0894e0f9bd579a8d6c87a0524140921ecfe9
7
+ data.tar.gz: 509a85d021dbace350c7abb2630f059002ca0870ab75fa249f6435fbc014e38b45b77bd871da537f8704a4aae879f0c778ee4a63926c41eda91a4bb0cb7c1f1e
@@ -2,13 +2,19 @@ require_relative './processor'
2
2
 
3
3
  module WebpackRails
4
4
  class Engine < ::Rails::Engine
5
- engine_name "webpack"
5
+ engine_name 'webpack'
6
6
 
7
- initializer :setup_webpack_rails, :after => "sprockets.environment", :group => :all do |app|
7
+ initializer :setup_webpack_rails, after: 'sprockets.environment', group: :all do |app|
8
8
  # where [name].bundle.js files should be
9
9
  app.assets.append_path Rails.root.join('tmp/webpack/bundles')
10
- # process
10
+
11
+ # process
11
12
  app.assets.register_preprocessor('application/javascript', WebpackRails::Processor)
13
+
14
+ # stop sprockets from ruining inline sourcemaps in dev
15
+ if Rails.env.development?
16
+ app.assets.unregister_postprocessor 'application/javascript', Sprockets::SafetyColons
17
+ end
12
18
  end
13
19
 
14
20
  rake_tasks do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webpack_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Friend
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-15 00:00:00.000000000 Z
11
+ date: 2015-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: node_task
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.0
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 0.1.1
19
+ version: 0.2.0
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: 0.1.0
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 0.1.1
26
+ version: 0.2.0
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: tilt
35
29
  requirement: !ruby/object:Gem::Requirement