Sha256: 05fdae38b7fd76c25e8c4ad9a8ca9e55593afbf46f1ecd9509380134e4787602
Contents?: true
Size: 527 Bytes
Versions: 2
Compression:
Stored size: 527 Bytes
Contents
# install pug dependencies run "yarn add pug pug-plain-loader" # add the pug loader copy_file "#{__dir__}/loaders/pug.js", Rails.root.join("config/webpack/loaders/pug.js").to_s # insert pug into the environment.js insert_into_file Rails.root.join("config/webpack/environment.js").to_s, "const pug = require('./loaders/pug')\n", after: "require('@rails/webpacker')\n" insert_into_file Rails.root.join("config/webpack/environment.js").to_s, "environment.loaders.prepend('pug', pug)\n", before: "module.exports = environment"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vueonrails-1.0.0.beta5 | lib/installs/pug.rb |
vueonrails-1.0.0.beta2 | lib/installs/pug.rb |