Rename remaining occurrences of webpacker to shakapacker
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -44,7 +44,7 @@ jobs:
|
|||||||
public/assets
|
public/assets
|
||||||
public/packs-test
|
public/packs-test
|
||||||
tmp/cache
|
tmp/cache
|
||||||
tmp/webpacker
|
tmp/shakapacker
|
||||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-yarn-
|
${{ runner.os }}-yarn-
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Note: You must restart bin/webpacker-dev-server for changes to take effect
|
# Note: You must restart bin/shakapacker-dev-server for changes to take effect
|
||||||
|
|
||||||
default: &default
|
default: &default
|
||||||
source_path: app/javascript
|
source_path: app/javascript
|
||||||
@ -19,7 +19,7 @@ default: &default
|
|||||||
|
|
||||||
public_root_path: public
|
public_root_path: public
|
||||||
public_output_path: packs
|
public_output_path: packs
|
||||||
cache_path: tmp/webpacker
|
cache_path: tmp/shakapacker
|
||||||
webpack_compile_output: true
|
webpack_compile_output: true
|
||||||
# See https://github.com/shakacode/shakapacker#deployment
|
# See https://github.com/shakacode/shakapacker#deployment
|
||||||
shakapacker_precompile: true
|
shakapacker_precompile: true
|
||||||
@ -79,7 +79,7 @@ development:
|
|||||||
compress: true
|
compress: true
|
||||||
# Note that apps that do not check the host are vulnerable to DNS rebinding attacks
|
# Note that apps that do not check the host are vulnerable to DNS rebinding attacks
|
||||||
allowed_hosts: 'all'
|
allowed_hosts: 'all'
|
||||||
# Shows progress and colorizes output of bin/webpacker[-dev-server]
|
# Shows progress and colorizes output of bin/shakapacker[-dev-server]
|
||||||
pretty: true
|
pretty: true
|
||||||
headers:
|
headers:
|
||||||
'Access-Control-Allow-Origin': '*'
|
'Access-Control-Allow-Origin': '*'
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
const { globalMutableWebpackConfig, generateWebpackConfig, config, merge } = require('shakapacker')
|
const { globalMutableWebpackConfig, generateWebpackConfig, config, merge } = require('shakapacker')
|
||||||
const webpackConfig = generateWebpackConfig()
|
const webpackConfig = generateWebpackConfig()
|
||||||
const webpack = require('webpack');
|
|
||||||
|
|
||||||
const CompressionPlugin = require("compression-webpack-plugin");
|
const CompressionPlugin = require("compression-webpack-plugin");
|
||||||
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
|
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Webpacker::SriHelperExtensions
|
module Shakapacker::SriHelperExtensions
|
||||||
def stylesheet_link_tag(*sources, **options)
|
def stylesheet_link_tag(*sources, **options)
|
||||||
tags = sources.map do |stylesheet|
|
tags = sources.map do |stylesheet|
|
||||||
if stylesheet.is_a?(Hash)
|
if stylesheet.is_a?(Hash)
|
||||||
@ -24,6 +24,6 @@ module Webpacker::SriHelperExtensions
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if Sprockets::Rails::Helper.ancestors.map(&:name).exclude?(Webpacker::SriHelperExtensions.name)
|
if Sprockets::Rails::Helper.ancestors.map(&:name).exclude?(Shakapacker::SriHelperExtensions.name)
|
||||||
Sprockets::Rails::Helper.prepend(Webpacker::SriHelperExtensions)
|
Sprockets::Rails::Helper.prepend(Shakapacker::SriHelperExtensions)
|
||||||
end
|
end
|
@ -1,6 +1,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Webpacker::SriManifestExtensions
|
module Shakapacker::SriManifestExtensions
|
||||||
def lookup(name, pack_type = {})
|
def lookup(name, pack_type = {})
|
||||||
asset = super
|
asset = super
|
||||||
|
|
||||||
@ -26,6 +26,6 @@ module Webpacker::SriManifestExtensions
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if Webpacker::Manifest.ancestors.map(&:name).exclude?(Webpacker::SriManifestExtensions.name)
|
if Shakapacker::Manifest.ancestors.map(&:name).exclude?(Shakapacker::SriManifestExtensions.name)
|
||||||
Webpacker::Manifest.prepend(Webpacker::SriManifestExtensions)
|
Shakapacker::Manifest.prepend(Shakapacker::SriManifestExtensions)
|
||||||
end
|
end
|
Reference in New Issue
Block a user