Sha256: aeef5a0cdba44501be89a0c72a6da17a615f6b011c559c32ef2bb633d74ad622

Contents?: true

Size: 661 Bytes

Versions: 3

Compression:

Stored size: 661 Bytes

Contents

require "webpacker/configuration"

puts "Copying vue loader to config/webpack/loaders"
copy_file "#{__dir__}/config/loaders/installers/vue.js", "config/webpack/loaders/vue.js"

puts "Copying the example entry file to #{Webpacker::Configuration.entry_path}"
copy_file "#{__dir__}/examples/vue/hello_vue.js", "#{Webpacker::Configuration.entry_path}/hello_vue.js"

puts "Copying vue app file to #{Webpacker::Configuration.entry_path}"
copy_file "#{__dir__}/examples/vue/app.vue", "#{Webpacker::Configuration.entry_path}/app.vue"

puts "Installing all vue dependencies"
run "yarn add vue vue-loader vue-template-compiler"

puts "Webpacker now supports vue.js 🎉"

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
webpacker-react-on-rails-3.0.0.rc.1 lib/install/vue.rb
webpacker-react-on-rails-2.0 lib/install/vue.rb
webpacker-2.0 lib/install/vue.rb