This document describes everything needed to integrate Webpack with a Rails project. The Webpack configuration here could be simplified even more if React & Typescript support is not needed.
module Webpack
module Asset
extend self| #!/bin/bash | |
| ################################## | |
| # | |
| # THE ARCHIVE TRACKER | |
| # | |
| # REF: https://gist.github.com/markwk/c85a8a72bc8c03d0f510262bb5219a34/ | |
| # | |
| # INTRODUCTION: | |
| # Daily script to navigate to a directory of plain text files, | |
| # add files to git repo, calculate key stats, store stats to csv |
| module Net | |
| class HTTP | |
| alias_method(:orig_request, :request) unless method_defined?(:orig_request) | |
| def request(req, body = nil, &block) | |
| puts '===== REQUEST =====' | |
| puts "Request: #{req.method} http://#{@address}:#{@port}#{req.path}" | |
| puts 'Request headers: ' | |
| req.each_header do |key, value| | |
| puts "\t#{key}: #{value}" |
It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.