Sha256: 6e4ccc91f5a4bf233963764db25588d97f9c53cfb0ea8d5016b3b5a9a7b96c38

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

require 'jass/vue/version'
require 'jass'

module Jass
  module Vue
    def self.root
      File.absolute_path(Pathname.new(__FILE__).dirname.join('..', '..', 'vendor').to_s)
    end
  end
end

Jass.prepend_plugin 'rollup-plugin-vue2', 'vue2', '{include: /\.vue$/ }', Jass::Vue.root
Jass.append_plugin 'rollup-plugin-replace', 'replace', -> { JSON.dump('process.env.NODE_ENV' => Rails.env) }, Jass::Vue.root if defined?(Rails)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jass-vue-0.3.0 lib/jass/vue.rb